fix: clear UI server cache at simulator stop
[e-mobility-charging-stations-simulator.git] / src / charging-station / Bootstrap.ts
index 3993ae1f2a34a23ea3113b04b447512deb6474b9..5ee1f2c0ccf8b3fb2fa1ae94282f8c47fc244bf7 100644 (file)
@@ -261,6 +261,7 @@ export class Bootstrap extends EventEmitter {
         await this.workerImplementation?.stop()
         delete this.workerImplementation
         this.removeAllListeners()
+        this.uiServer?.chargingStations.clear()
         await this.storage?.close()
         delete this.storage
         this.started = false