- if (new Date() > this.connectorsStatus.get(connectorId)!.stopDate!) {
- this.stopConnector(connectorId);
- break;
- }
- if (this.chargingStation.inAcceptedState() === false) {
- logger.error(
- `${this.logPrefix(
- connectorId,
- )} entered in transaction loop while the charging station is not in accepted state`,
- );
- this.stopConnector(connectorId);
- break;
- }
- if (this.chargingStation.isChargingStationAvailable() === false) {
- logger.info(
- `${this.logPrefix(
- connectorId,
- )} entered in transaction loop while the charging station is unavailable`,
- );
- this.stopConnector(connectorId);
- break;
- }
- if (this.chargingStation.isConnectorAvailable(connectorId) === false) {
- logger.info(
- `${this.logPrefix(
- connectorId,
- )} entered in transaction loop while the connector ${connectorId} is unavailable`,
- );
- 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`,
- );