From bdb50f5a32406bfbde8d53d352b37f0a434a1e7f Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Thu, 20 Jul 2023 22:01:20 +0200 Subject: [PATCH] refactor: emit worker set info at element started event 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 bc1a4c08..2514d723 100644 --- a/src/worker/WorkerSet.ts +++ b/src/worker/WorkerSet.ts @@ -119,7 +119,7 @@ export class WorkerSet extends WorkerAbstract { ); worker.on('message', (message: WorkerMessage) => { if (message.event === WorkerMessageEvents.startedWorkerElement) { - this.emitter?.emit(WorkerSetEvents.elementStarted, message.data); + this.emitter?.emit(WorkerSetEvents.elementStarted, this.info); } else if (message.event === WorkerMessageEvents.startWorkerElementError) { this.emitter?.emit(WorkerSetEvents.elementError, message.data); } -- 2.34.1