fix: do not remove pool event user registered callbacks at destroy()
[poolifier.git] / src / pools / abstract-pool.ts
index c5ad9cb3608ac8e2095c23c023c949e0f48ae7eb..cd1d364d21c15db6cb9b5fae1e6af8e0029b2510 100644 (file)
@@ -993,7 +993,6 @@ export abstract class AbstractPool<
     )
     this.emitter?.emit(PoolEvents.destroy, this.info)
     this.emitter?.emitDestroy()
-    this.emitter?.removeAllListeners()
     this.readyEventEmitted = false
     this.destroying = false
     this.started = false