From 17cd01099ddc50c1c0ae87a8f2fbf47a4410114c Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Tue, 7 Nov 2023 21:08:02 +0100 Subject: [PATCH] fix(simulator): remove unneeded main thread check at simulator stop MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/charging-station/Bootstrap.ts | 3 --- 1 file changed, 3 deletions(-) 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; -- 2.34.1