From 36c1166db79b6b2631b1419a6ec47415c413ac06 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 11 Feb 2024 19:27:38 +0100 Subject: [PATCH] fix: flag worker set as stopped as soon the stopped event is emitted MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/worker/WorkerSet.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/worker/WorkerSet.ts b/src/worker/WorkerSet.ts index f22f1953..4a43e27b 100644 --- a/src/worker/WorkerSet.ts +++ b/src/worker/WorkerSet.ts @@ -97,9 +97,9 @@ export class WorkerSet extends WorkerAbstract { await waitWorkerExit } this.emitter?.emit(WorkerSetEvents.stopped, this.info) + this.started = false this.emitter?.emitDestroy() this.emitter?.removeAllListeners() - this.started = false } /** @inheritDoc */ -- 2.34.1