From 6d59c3a3520db9791b41becae986a84526263c74 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Tue, 14 Nov 2023 21:52:03 +0100 Subject: [PATCH] fix: do not check for pool destroying statuses at task redistribution MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .c8rc.json | 4 ++-- src/pools/abstract-pool.ts | 6 +----- 2 files changed, 3 insertions(+), 7 deletions(-) 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) } }) -- 2.34.1