From b2bece24c8376b29bb0075727402ec3368e31f04 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 25 Sep 2021 22:44:55 +0200 Subject: [PATCH] Ensure the ATG connector status is not overwritten at stop MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/charging-station/AutomaticTransactionGenerator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.34.1