X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fcluster%2Ffixed.ts;h=7cc3bf53950870a0ac2ee6e1a99871bfb72e4214;hb=90bd5e4759bd31cc25b6f42e88d07ed05b969cec;hp=b2724426a02111108b33debcaa3c116fe9e2b0c5;hpb=b8818d59f9e410ce2e3b0103b8372b3fa1badf8f;p=poolifier.git diff --git a/src/pools/cluster/fixed.ts b/src/pools/cluster/fixed.ts index b2724426..7cc3bf53 100644 --- a/src/pools/cluster/fixed.ts +++ b/src/pools/cluster/fixed.ts @@ -59,6 +59,7 @@ export class FixedClusterPool< } protected destroyWorker (worker: Worker): void { + this.sendToWorker(worker, { kill: 1 }) worker.kill() }