Avoid circular modules import
[e-mobility-charging-stations-simulator.git] / src / charging-station / Bootstrap.ts
index 6770f7bba47079a803bfc5d64377109c3f6e405c..f47a879bd4701cdbcd99fa60e22c0da6fc8fbc69 100644 (file)
@@ -15,6 +15,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());
   }
 
   public static getInstance(): Bootstrap {