fix(simulator): remove unneeded main thread check at simulator stop
[e-mobility-charging-stations-simulator.git] / 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;