From: Jérôme Benoit Date: Tue, 7 Nov 2023 20:08:02 +0000 (+0100) Subject: fix(simulator): remove unneeded main thread check at simulator stop X-Git-Tag: v1.2.24~39 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=17cd01099ddc50c1c0ae87a8f2fbf47a4410114c;p=e-mobility-charging-stations-simulator.git fix(simulator): remove unneeded main thread check at simulator stop Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/Bootstrap.ts b/src/charging-station/Bootstrap.ts index baa756af..f3f6d8b0 100644 --- a/src/charging-station/Bootstrap.ts +++ b/src/charging-station/Bootstrap.ts @@ -178,9 +178,6 @@ export class Bootstrap extends EventEmitter { } public async stop(): Promise { - if (!isMainThread) { - throw new BaseError('Cannot stop charging stations simulator from worker thread'); - } if (this.started === true) { if (this.stopping === false) { this.stopping = true;