From: Jérôme Benoit Date: Sun, 17 Sep 2023 19:34:30 +0000 (+0200) Subject: Merge branch 'master' into feature/task-functions X-Git-Tag: v2.7.0~1^2~20 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=059cf20e59d680db96e1d812dd6320ba9af55c1c;p=poolifier.git Merge branch 'master' into feature/task-functions --- 059cf20e59d680db96e1d812dd6320ba9af55c1c diff --cc src/pools/abstract-pool.ts index 5d649f19,cbc24e7d..3d10391c --- a/src/pools/abstract-pool.ts +++ b/src/pools/abstract-pool.ts @@@ -1518,9 -1395,9 +1518,9 @@@ export abstract class AbstractPool this.getWorkerNodeKeyByWorkerId(message.workerId) ) workerInfo.ready = message.ready as boolean - workerInfo.taskFunctions = message.taskFunctions + workerInfo.taskFunctionNames = message.taskFunctionNames - if (this.emitter != null && this.ready) { - this.emitter.emit(PoolEvents.ready, this.info) + if (this.ready) { + this.emitter?.emit(PoolEvents.ready, this.info) } }