Ensure the ATG will stop on unavaible connector
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 25 Sep 2021 16:26:38 +0000 (18:26 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 25 Sep 2021 16:26:38 +0000 (18:26 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
src/charging-station/AutomaticTransactionGenerator.ts

index 5a5ca993513ef561d944a4f2eaa28265acdf4b10..b32e794885326c6c768dbdf2857ba4d65a7e1693 100644 (file)
@@ -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) {