fix: skip worker message events processing
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 23 Mar 2024 10:53:01 +0000 (11:53 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 23 Mar 2024 10:53:01 +0000 (11:53 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
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) {