mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-03 22:13:12 +00:00
fix: update discovery isStarted flag during the stop (#1347)
This commit is contained in:
parent
16d44d038a
commit
c80d44ff93
@ -216,6 +216,7 @@ proc stop*(d: Discovery) {.async: (raises: []).} =
|
||||
|
||||
try:
|
||||
await noCancel d.protocol.closeWait()
|
||||
d.isStarted = false
|
||||
except CatchableError as exc:
|
||||
error "Error stopping discovery", exc = exc.msg
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user