repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor: cleanup worker code
[poolifier.git]
/
src
/
pools
/
thread
/
fixed.ts
diff --git
a/src/pools/thread/fixed.ts
b/src/pools/thread/fixed.ts
index ddda04b113ec9028b0cd24c8f53001d12714a901..73740baa92110e213b427fe0ca1f8aeafebe307c 100644
(file)
--- 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()
})
await this.sendKillMessageToWorker(workerNodeKey)
workerNode.closeChannel()
+ workerNode.removeAllListeners()
await worker.terminate()
await waitWorkerExit
}
await worker.terminate()
await waitWorkerExit
}