mirror of https://github.com/waku-org/nwaku.git
fix: check nil before calling clearTimer (#1869)
This commit is contained in:
parent
be5dc8f379
commit
2fc48842b7
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue