From: Jérôme Benoit Date: Sun, 12 Jun 2022 22:21:20 +0000 (+0200) Subject: Unreference the worker implementation at stop X-Git-Tag: v1.1.63~6 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=b19021e229ef0d868cea4b03118b357b80fee173;p=e-mobility-charging-stations-simulator.git Unreference the worker implementation at stop Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/Bootstrap.ts b/src/charging-station/Bootstrap.ts index bb76c906..af96523f 100644 --- a/src/charging-station/Bootstrap.ts +++ b/src/charging-station/Bootstrap.ts @@ -135,6 +135,7 @@ export default class Bootstrap { public async stop(): Promise { if (isMainThread && this.started) { await this.workerImplementation.stop(); + this.workerImplementation = null; this.uiServer?.stop(); await this.storage?.close(); } else {