X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fthread%2Ffixed.ts;h=73740baa92110e213b427fe0ca1f8aeafebe307c;hb=8b4b3bded3afa74f22aa673871d2dfb72b6da090;hp=ddda04b113ec9028b0cd24c8f53001d12714a901;hpb=9761e404d09d6dec98dd89c2b6981497a1dd9a37;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 }