From: Jérôme Benoit Date: Sat, 25 Sep 2021 16:26:38 +0000 (+0200) Subject: Ensure the ATG will stop on unavaible connector X-Git-Tag: v1.1.8~1 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=9c7195b209ec5072ba96581f7c2a30314c59fb76;p=e-mobility-charging-stations-simulator.git Ensure the ATG will stop on unavaible connector Signed-off-by: Jérôme Benoit --- 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) {