mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-08 00:13:08 +00:00
Update discovery isStarted flag during the stop
This commit is contained in:
parent
16d44d038a
commit
21e9cf2df0
@ -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