X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fabstract-pool.ts;h=d175cd5b0b8204fdb029ba9e2c35d7b52ac60522;hb=afca2ad2e7eec42caac894b4369654a961e67313;hp=fa3406a376660c0de442be50778729187fc3fe02;hpb=4e377863ebacc8cead467297d0365e93dec491c3;p=poolifier.git diff --git a/src/pools/abstract-pool.ts b/src/pools/abstract-pool.ts index fa3406a3..d175cd5b 100644 --- a/src/pools/abstract-pool.ts +++ b/src/pools/abstract-pool.ts @@ -617,9 +617,10 @@ export abstract class AbstractPool< */ protected internalBusy (): boolean { return ( - this.workerNodes.findIndex(workerNode => { - return workerNode.usage.tasks.executing === 0 - }) === -1 + this.workerNodes.findIndex( + workerNode => + workerNode.info.ready && workerNode.usage.tasks.executing === 0 + ) === -1 ) }