repositories
/
e-mobility-charging-stations-simulator.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44fccdf
)
refactor: ensure all worker events are remitted in main thread
author
Jérôme Benoit
<jerome.benoit@sap.com>
Mon, 5 Feb 2024 21:50:38 +0000
(22:50 +0100)
committer
Jérôme Benoit
<jerome.benoit@sap.com>
Mon, 5 Feb 2024 21:50:38 +0000
(22:50 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/Bootstrap.ts
patch
|
blob
|
blame
|
history
diff --git
a/src/charging-station/Bootstrap.ts
b/src/charging-station/Bootstrap.ts
index 75accffc9f72b723583fdd8f1681845083e85668..98cadb845dd933dc48438c5c7010347d4a071af6 100644
(file)
--- 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)