fix: check nil before calling clearTimer (#1869)

This commit is contained in:
Vaclav Pavlin 2023-08-02 13:31:14 +02:00 committed by GitHub
parent 69969762a7
commit 1c88487392

View File

@ -266,5 +266,6 @@ method start*(wf: WakuFilter) {.async.} =
method stop*(wf: WakuFilter) {.async.} =
debug "stopping filter protocol"
wf.maintenanceTask.clearTimer()
if not wf.maintenanceTask.isNil():
wf.maintenanceTask.clearTimer()
await procCall LPProtocol(wf).stop()