mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-15 01:14:56 +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.} =
|
method stop*(wf: WakuFilter) {.async.} =
|
||||||
debug "stopping filter protocol"
|
debug "stopping filter protocol"
|
||||||
|
if not wf.maintenanceTask.isNil():
|
||||||
wf.maintenanceTask.clearTimer()
|
wf.maintenanceTask.clearTimer()
|
||||||
await procCall LPProtocol(wf).stop()
|
await procCall LPProtocol(wf).stop()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user