From b19021e229ef0d868cea4b03118b357b80fee173 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 13 Jun 2022 00:21:20 +0200 Subject: [PATCH] Unreference the worker implementation at 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 | 1 + 1 file changed, 1 insertion(+) 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 { -- 2.34.1