From: Jérôme Benoit Date: Tue, 14 Nov 2023 20:52:03 +0000 (+0100) Subject: fix: do not check for pool destroying statuses at task redistribution X-Git-Tag: v3.0.6~27 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=6d59c3a3520db9791b41becae986a84526263c74;p=poolifier.git fix: do not check for pool destroying statuses at task redistribution Signed-off-by: Jérôme Benoit --- diff --git a/.c8rc.json b/.c8rc.json index 29100bb2..78e10125 100644 --- a/.c8rc.json +++ b/.c8rc.json @@ -1,7 +1,7 @@ { "check-coverage": true, - "lines": 94, - "statements": 94, + "lines": 93, + "statements": 93, "functions": 95, "branches": 92 } diff --git a/src/pools/abstract-pool.ts b/src/pools/abstract-pool.ts index 5392914d..b09b81ae 100644 --- a/src/pools/abstract-pool.ts +++ b/src/pools/abstract-pool.ts @@ -1266,11 +1266,7 @@ export abstract class AbstractPool< this.createAndSetupWorkerNode() } } - if ( - this.started && - !this.destroying && - this.opts.enableTasksQueue === true - ) { + if (this.started && this.opts.enableTasksQueue === true) { this.redistributeQueuedTasks(workerNodeKey) } })