From 9c7195b209ec5072ba96581f7c2a30314c59fb76 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 25 Sep 2021 18:26:38 +0200 Subject: [PATCH] Ensure the ATG will stop on unavaible connector 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/src/charging-station/AutomaticTransactionGenerator.ts b/src/charging-station/AutomaticTransactionGenerator.ts index 5a5ca993..b32e7948 100644 --- a/src/charging-station/AutomaticTransactionGenerator.ts +++ b/src/charging-station/AutomaticTransactionGenerator.ts @@ -91,6 +91,7 @@ export default class AutomaticTransactionGenerator { } if (!this.chargingStation.isConnectorAvailable(connectorId)) { logger.info(`${this.logPrefix(connectorId)} Entered in transaction loop while the connector ${connectorId} is unavailable, stop it`); + this.stopConnector(connectorId); break; } if (!this.chargingStation?.ocppRequestService) { -- 2.34.1