From c4138fc3c739c33ad4e1d31cc8e583a97f4ef7aa Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Fri, 22 Aug 2025 19:09:57 +0200 Subject: [PATCH] fix: ensure destroy event has up2date pool info MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/pools/abstract-pool.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pools/abstract-pool.ts b/src/pools/abstract-pool.ts index cfd919ccf..10bc2ff52 100644 --- a/src/pools/abstract-pool.ts +++ b/src/pools/abstract-pool.ts @@ -633,15 +633,15 @@ export abstract class AbstractPool< }) ) } finally { + delete this.startTimestamp + this.destroying = false + this.started = false if (this.emitter != null) { this.emitter.listenerCount(PoolEvents.destroy) > 0 && this.emitter.emit(PoolEvents.destroy, this.info) this.emitter.emitDestroy() this.readyEventEmitted = false } - delete this.startTimestamp - this.destroying = false - this.started = false } } -- 2.53.0