Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
## [Unreleased]
+### Fixed
+
+- Remove all pool events listener at pool destroying.
+- Remove all worker node events listener at worker node destroying.
+
## [3.0.8] - 2023-11-25
### Fixed
)
this.emitter?.emit(PoolEvents.destroy, this.info)
this.emitter?.emitDestroy()
+ this.emitter?.removeAllListeners()
this.readyEventEmitted = false
this.destroying = false
this.started = false
worker.kill()
})
await this.sendKillMessageToWorker(workerNodeKey)
+ workerNode.removeAllListeners()
worker.disconnect()
await waitWorkerExit
}
})
await this.sendKillMessageToWorker(workerNodeKey)
workerNode.closeChannel()
+ workerNode.removeAllListeners()
await worker.terminate()
await waitWorkerExit
}