From d544e3d43f81d29395c5b72d8f799f59c8b05cee Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 27 Jan 2021 13:54:22 +0100 Subject: [PATCH] Bootstrap: Avoid a direct call on an attribute. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/charging-station/Bootstrap.ts b/src/charging-station/Bootstrap.ts index 50e861dd..48188134 100644 --- a/src/charging-station/Bootstrap.ts +++ b/src/charging-station/Bootstrap.ts @@ -65,7 +65,7 @@ export default class Bootstrap { public async stop(): Promise { if (isMainThread && this.isStarted) { await this.getWorkerImplementation().stop(); - if (this.workerImplementation) { + if (this.getWorkerImplementation()) { // Nullify to force worker implementation instance creation this.workerImplementation = null; } -- 2.34.1