From 21e9cf2df0e940558224d5dbd543bd8bd0bc18ab Mon Sep 17 00:00:00 2001 From: Arnaud Date: Fri, 14 Nov 2025 04:18:08 +0100 Subject: [PATCH] Update discovery isStarted flag during the stop --- codex/discovery.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/codex/discovery.nim b/codex/discovery.nim index 88167a29..1734e4bf 100644 --- a/codex/discovery.nim +++ b/codex/discovery.nim @@ -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