X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fthread%2Ffixed.ts;h=73740baa92110e213b427fe0ca1f8aeafebe307c;hb=ca438ccd304d3b139305672f1d9148b5378b62f1;hp=ddda04b113ec9028b0cd24c8f53001d12714a901;hpb=7c48b2a96e4a42d627bc08f67173956f1d2e30af;p=poolifier.git diff --git a/src/pools/thread/fixed.ts b/src/pools/thread/fixed.ts index ddda04b1..73740baa 100644 --- a/src/pools/thread/fixed.ts +++ b/src/pools/thread/fixed.ts @@ -70,6 +70,7 @@ export class FixedThreadPool< }) await this.sendKillMessageToWorker(workerNodeKey) workerNode.closeChannel() + workerNode.removeAllListeners() await worker.terminate() await waitWorkerExit }