Update discovery isStarted flag during the stop

This commit is contained in:
Arnaud 2025-11-14 04:18:08 +01:00
parent 16d44d038a
commit 21e9cf2df0
No known key found for this signature in database
GPG Key ID: B8FBC178F10CA7AE

View File

@ -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