From: Jérôme Benoit Date: Mon, 5 Feb 2024 21:50:38 +0000 (+0100) Subject: refactor: ensure all worker events are remitted in main thread X-Git-Tag: v1.2.36~38 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=a492245cc3b2cfb39f4c527988a026c396682ad2;p=e-mobility-charging-stations-simulator.git refactor: ensure all worker events are remitted in main thread Signed-off-by: Jérôme Benoit --- 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)