feat: add `deleteChargingStations` SRPC command to UI Services
[e-mobility-charging-stations-simulator.git] / src / charging-station / ui-server / AbstractUIServer.ts
index 99dbc657e2708cbf92b9b4aa80244c2de4d7a769..a1375cea3786d131013685e39786032e7f1e4d6f 100644 (file)
@@ -59,6 +59,9 @@ export abstract class AbstractUIServer {
 
   public stop (): void {
     this.stopHttpServer()
+    for (const uiService of this.uiServices.values()) {
+      uiService.stop()
+    }
     this.chargingStations.clear()
     this.chargingStationTemplates.clear()
   }