From: Jérôme Benoit Date: Sat, 25 Sep 2021 20:44:55 +0000 (+0200) Subject: Ensure the ATG connector status is not overwritten at stop X-Git-Tag: v1.1.9~1 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=b2bece24c8376b29bb0075727402ec3368e31f04;p=e-mobility-charging-stations-simulator.git Ensure the ATG connector status is not overwritten at stop Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/AutomaticTransactionGenerator.ts b/src/charging-station/AutomaticTransactionGenerator.ts index 37cbe1b0..5fcf83a6 100644 --- a/src/charging-station/AutomaticTransactionGenerator.ts +++ b/src/charging-station/AutomaticTransactionGenerator.ts @@ -125,7 +125,7 @@ export default class AutomaticTransactionGenerator { } private stopConnector(connectorId: number): void { - this.connectorsStatus.set(connectorId, { start: false }); + this.connectorsStatus.set(connectorId, { ...this.connectorsStatus.get(connectorId), start: false }); } private initStartConnectorStatus(connectorId: number): void {