mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-14 17:04:53 +00:00
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"
|
||||
if not wf.maintenanceTask.isNil():
|
||||
wf.maintenanceTask.clearTimer()
|
||||
await procCall LPProtocol(wf).stop()
|
||||
|
Loading…
x
Reference in New Issue
Block a user