]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commitdiff
fix: ensure simulator is reinit at configuration file change
authorJérôme Benoit <jerome.benoit@sap.com>
Wed, 8 Oct 2025 19:11:08 +0000 (21:11 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Wed, 8 Oct 2025 19:11:08 +0000 (21:11 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/Bootstrap.ts

index d7dcb1190df1a712738999ee8a05ab08047f1ea5..d249efb5d482cf4d9c13d34dd10c9987587044ab 100644 (file)
@@ -513,6 +513,7 @@ export class Bootstrap extends EventEmitter {
       this.uiServer.stop()
       this.uiServerStarted = false
     }
+    this.initializeCounters()
     // FIXME: initialize worker implementation only if the worker section has changed
     this.initializeWorkerImplementation(
       Configuration.getConfigurationSection<WorkerConfiguration>(ConfigurationSection.worker)