Skip to content

Commit 94badb4

Browse files
committed
fix cancellation
1 parent c535fb6 commit 94badb4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

nimbus_verified_proxy/lc/lc_manager.nim

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,10 @@ proc query[E](
286286
workers[i].complete(false)
287287

288288
# Wait for any worker to report progress, or for all workers to finish
289-
waitFor progressFut
289+
try:
290+
waitFor progressFut
291+
except CancelledError as e:
292+
discard # cancellation only occurs when all workers have failed
290293

291294
# cancel all workers
292295
for i in 0 ..< NUM_WORKERS:

0 commit comments

Comments
 (0)