From: Jérôme Benoit Date: Mon, 1 Jan 2024 20:48:21 +0000 (+0100) Subject: refactor: code cleanup X-Git-Tag: v3.1.15-0~4 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=1087637e65991bbcf07248b277d0fa99594a1528;p=poolifier.git refactor: code cleanup Signed-off-by: Jérôme Benoit --- diff --git a/src/pools/abstract-pool.ts b/src/pools/abstract-pool.ts index 4720e8b4..8e32218d 100644 --- a/src/pools/abstract-pool.ts +++ b/src/pools/abstract-pool.ts @@ -1702,8 +1702,8 @@ export abstract class AbstractPool< workerNode.info.ready = ready workerNode.info.taskFunctionNames = taskFunctionNames if (!this.readyEventEmitted && this.ready) { - this.readyEventEmitted = true this.emitter?.emit(PoolEvents.ready, this.info) + this.readyEventEmitted = true } }