fix: skip worker message events processing
[e-mobility-charging-stations-simulator.git] / src / charging-station / Bootstrap.ts
index 0f2a26a831cd98ed2f9cfdeedd30e0faab82b4b8..5b2ace54b934d1ad6eee03da8d4a6b94fe100cb5 100644 (file)
@@ -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) {