X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fcluster%2Ffixed.ts;h=9022c7025961e9fc206358a48843c9fc5070b0be;hb=1e3214b63e262557aadebf3c57e8388de6a4bbe4;hp=b5b32527cf595b8b4ec8f52f3290a10e4647cbd4;hpb=de2e7182cca6b34b000a09bf6d0ddcff4757db3a;p=poolifier.git diff --git a/src/pools/cluster/fixed.ts b/src/pools/cluster/fixed.ts index b5b32527..9022c702 100644 --- a/src/pools/cluster/fixed.ts +++ b/src/pools/cluster/fixed.ts @@ -72,7 +72,7 @@ export class FixedClusterPool< worker.on('disconnect', () => { worker.kill() }) - this.sendToWorker(workerNodeKey, { kill: true, workerId: worker.id }) + await this.sendKillMessageToWorker(workerNodeKey, worker.id) worker.disconnect() await waitWorkerExit }