feat: internal messaging strict worker id checking
[poolifier.git] / src / pools / cluster / fixed.ts
index 3c69ec2f74318188d1a2b8ac1dcd40b59369aa80..6e9b4b07113bac62000a84ae0a2d8aa05b333532 100644 (file)
@@ -61,7 +61,7 @@ export class FixedClusterPool<
 
   /** @inheritDoc */
   protected destroyWorker (worker: Worker): void {
-    this.sendToWorker(worker, { kill: true })
+    this.sendToWorker(worker, { kill: true, workerId: worker.id })
     worker.on('disconnect', () => {
       worker.kill()
     })