From: Jérôme Benoit Date: Wed, 27 Jan 2021 12:54:22 +0000 (+0100) Subject: Bootstrap: Avoid a direct call on an attribute. X-Git-Tag: v1.0.1-0~105^2~13 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=d544e3d43f81d29395c5b72d8f799f59c8b05cee;p=e-mobility-charging-stations-simulator.git Bootstrap: Avoid a direct call on an attribute. Signed-off-by: Jérôme Benoit --- 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; }