From: Jérôme Benoit Date: Sat, 23 Mar 2024 10:53:01 +0000 (+0100) Subject: fix: skip worker message events processing X-Git-Tag: v1.3.1~6 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=a86eefabd6d0538803532e7f8ef6498215c54863;p=e-mobility-charging-stations-simulator.git fix: skip worker message events processing Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/Bootstrap.ts b/src/charging-station/Bootstrap.ts index 0f2a26a8..5b2ace54 100644 --- a/src/charging-station/Bootstrap.ts +++ b/src/charging-station/Bootstrap.ts @@ -376,6 +376,11 @@ export class Bootstrap extends EventEmitter { // 2 // )}` // ) + // Skip worker message events processing + // eslint-disable-next-line @typescript-eslint/dot-notation + if (msg['uuid'] != null) { + return + } const { event, data } = msg try { switch (event) {