mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-02 13:33:10 +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:
|
try:
|
||||||
await noCancel d.protocol.closeWait()
|
await noCancel d.protocol.closeWait()
|
||||||
|
d.isStarted = false
|
||||||
except CatchableError as exc:
|
except CatchableError as exc:
|
||||||
error "Error stopping discovery", exc = exc.msg
|
error "Error stopping discovery", exc = exc.msg
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user