Skip to content

Commit

Permalink
fix: check nil before calling clearTimer (#1869)
Browse files Browse the repository at this point in the history
  • Loading branch information
vpavlin committed Aug 2, 2023
1 parent be5dc8f commit 2fc4884
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion waku/v2/waku_filter_v2/protocol.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 2fc4884

Please sign in to comment.