X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2FBootstrap.ts;h=acfd99145e9a33b4d983bbecfc864427c0ebd9ae;hb=b02ab2157918aede5b539c6307a6010d97b6ee83;hp=97c231cb08acd3020496f538a48638a9936e32b1;hpb=a0cc9278424129c176b8e491891a2053eac03c59;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/Bootstrap.ts b/src/charging-station/Bootstrap.ts index 97c231cb..acfd9914 100644 --- a/src/charging-station/Bootstrap.ts +++ b/src/charging-station/Bootstrap.ts @@ -9,7 +9,7 @@ import { version } from '../../package.json'; export default class Bootstrap { private static instance: Bootstrap; - private version: string = version ; + private version: string = version; private started: boolean; private workerScript: string; private workerImplementationInstance: WorkerAbstract | null = null; @@ -17,7 +17,7 @@ export default class Bootstrap { private constructor() { this.started = false; this.workerScript = path.join(path.resolve(__dirname, '../'), 'charging-station', 'StationWorker.js'); - Configuration.setConfigurationChangeCallback(async () => this.restart()); + Configuration.setConfigurationChangeCallback(async () => Bootstrap.getInstance().restart()); } public static getInstance(): Bootstrap {