From a492245cc3b2cfb39f4c527988a026c396682ad2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 5 Feb 2024 22:50:38 +0100 Subject: [PATCH] refactor: ensure all worker events are remitted in main thread MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/charging-station/Bootstrap.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/charging-station/Bootstrap.ts b/src/charging-station/Bootstrap.ts index 75accffc..98cadb84 100644 --- a/src/charging-station/Bootstrap.ts +++ b/src/charging-station/Bootstrap.ts @@ -362,6 +362,7 @@ export class Bootstrap extends EventEmitter { this.emit(ChargingStationWorkerMessageEvents.performanceStatistics, msg.data) break case ChargingStationWorkerMessageEvents.addedWorkerElement: + this.emit(ChargingStationWorkerMessageEvents.addWorkerElement, msg.data) break case ChargingStationWorkerMessageEvents.workerElementError: this.emit(ChargingStationWorkerMessageEvents.workerElementError, msg.data) -- 2.34.1