mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-03 14:33:12 +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"
|
||||
wf.maintenanceTask.clearTimer()
|
||||
if not wf.maintenanceTask.isNil():
|
||||
wf.maintenanceTask.clearTimer()
|
||||
await procCall LPProtocol(wf).stop()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user