fix: update discovery isStarted flag during the stop (#1347)

This commit is contained in:
Arnaud 2025-11-14 07:19:18 +04:00 committed by GitHub
parent 16d44d038a
commit c80d44ff93
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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