Skip to content

Commit afa04cd

Browse files
committed
Replace the CancellationToken with a new one when idling
Otherwise, the token stays canceled and all subsequent attempts to spawn a child immediately exit. Fixes #974
1 parent 29cc266 commit afa04cd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/base/orchestrator/src/coordinator.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,8 @@ where
484484
token,
485485
..
486486
} = self;
487+
488+
let token = mem::take(token);
487489
token.cancel();
488490

489491
let channels =

0 commit comments

Comments
 (0)