X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2FChargingStation.ts;h=9da4fdbb41934219468867ed824b94fd3fb36cd3;hb=c2be11fddae3fd9c84ab92719e3d479301eb0257;hp=8a5c5c6fba84ed66b0fb33a32de578bcc3f4ee62;hpb=36b73d95deccfb6538929c48e0f989fb1c696e8a;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/ChargingStation.ts b/src/charging-station/ChargingStation.ts index 8a5c5c6f..9da4fdbb 100644 --- a/src/charging-station/ChargingStation.ts +++ b/src/charging-station/ChargingStation.ts @@ -686,6 +686,7 @@ export class ChargingStation extends EventEmitter { deleteConfiguration && rmSync(this.configurationFile, { force: true }) this.chargingStationWorkerBroadcastChannel.unref() this.emit(ChargingStationEvents.deleted) + this.removeAllListeners() } public start (): void {