Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
type AuthorizeRequest,
type AuthorizeResponse,
type AutomaticTransactionGeneratorConfiguration,
+ ConnectorStatusEnum,
IdTagDistribution,
RequestCommand,
type StartTransactionRequest,
this.stopConnector(connectorId);
break;
}
+ if (
+ this.chargingStation.getConnectorStatus(connectorId)?.status ===
+ ConnectorStatusEnum.Unavailable
+ ) {
+ logger.info(
+ `${this.logPrefix(
+ connectorId
+ )} entered in transaction loop while the connector ${connectorId} status is unavailable`
+ );
+ this.stopConnector(connectorId);
+ break;
+ }
if (!this.chargingStation?.ocppRequestService) {
logger.info(
`${this.logPrefix(