X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fthread%2Ffixed.ts;h=c9145f571186a9d5783531236414aff7eadd463e;hb=21f710aa73abbb5d90328cfb199adfc0f7a70406;hp=29f008806663aea87b837cbf412a5ed561d1974e;hpb=2431bdb4c2dc637169bf623a40fc6562f685e56e;p=poolifier.git diff --git a/src/pools/thread/fixed.ts b/src/pools/thread/fixed.ts index 29f00880..c9145f57 100644 --- a/src/pools/thread/fixed.ts +++ b/src/pools/thread/fixed.ts @@ -55,7 +55,7 @@ export class FixedThreadPool< /** @inheritDoc */ protected async destroyWorker (worker: Worker): Promise { - this.sendToWorker(worker, { kill: true }) + this.sendToWorker(worker, { kill: true, workerId: worker.threadId }) await worker.terminate() }