fix(simulator): remove unneeded main thread check at simulator stop
authorJérôme Benoit <jerome.benoit@sap.com>
Tue, 7 Nov 2023 20:08:02 +0000 (21:08 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Tue, 7 Nov 2023 20:08:02 +0000 (21:08 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/Bootstrap.ts

index baa756af6a1d8352fc0db56031fddaebe528d775..f3f6d8b08531e52678772cfad3889f09dd0d9ce7 100644 (file)
@@ -178,9 +178,6 @@ export class Bootstrap extends EventEmitter {
   }
 
   public async stop(): Promise<void> {
-    if (!isMainThread) {
-      throw new BaseError('Cannot stop charging stations simulator from worker thread');
-    }
     if (this.started === true) {
       if (this.stopping === false) {
         this.stopping = true;