X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fcluster%2Ffixed.ts;h=1fea176c4f3884c1ce4778f891d059d9f48bbbde;hb=5ff840c7da44b209f1bab00f0881f7fc93e36eec;hp=c60266e3d72b623fb9225dcc20882c064d29438c;hpb=fea198e84b17af4bd0f63cb2984447afbd1a7192;p=poolifier.git diff --git a/src/pools/cluster/fixed.ts b/src/pools/cluster/fixed.ts index c60266e3..1fea176c 100644 --- a/src/pools/cluster/fixed.ts +++ b/src/pools/cluster/fixed.ts @@ -52,7 +52,7 @@ export class FixedClusterPool< workerNodeKey: number, message: MessageValue ): void { - this.workerNodes[workerNodeKey].worker.send({ + this.workerNodes[workerNodeKey]?.worker.send({ ...message, workerId: this.getWorkerInfo(workerNodeKey)?.id } satisfies MessageValue)