X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fabstract-pool.ts;h=0c366911a1ddb059f3c993f69bfdabfa8404173a;hb=48237019f9629e7554d51b2ce613bd08f711c38f;hp=65ace6d907a20ca5a88d820d638c1aaa1a6f8bf1;hpb=cdaecaee1c7fa5c412daf29f2db41470506793ac;p=poolifier.git diff --git a/src/pools/abstract-pool.ts b/src/pools/abstract-pool.ts index 65ace6d9..0c366911 100644 --- a/src/pools/abstract-pool.ts +++ b/src/pools/abstract-pool.ts @@ -1244,7 +1244,8 @@ export abstract class AbstractPool< ) { this.redistributeQueuedTasks(this.workerNodes.indexOf(workerNode)) } - workerNode.terminate().catch(error => { + // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition + workerNode?.terminate().catch(error => { this.emitter?.emit(PoolEvents.error, error) }) })