}
if (this.connectorsStatus.get(connectorId)?.start === false) {
this.runInAsyncScope(
- this.internalStartConnector.bind(this) as (this: this, ...args: any[]) => unknown,
+ this.internalStartConnector.bind(this) as (
+ this: AutomaticTransactionGenerator,
+ ...args: any[]
+ ) => Promise<void>,
this,
connectorId
- );
+ ).catch(() => {
+ /* This is intentional */
+ });
} else if (this.connectorsStatus.get(connectorId)?.start === true) {
logger.warn(`${this.logPrefix(connectorId)} is already started on connector`);
}
this.stopConnector(connectorId);
break;
}
- if (!this.chargingStation.isInAcceptedState()) {
+ if (this.chargingStation.isInAcceptedState() === 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()) {
+ 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)) {
+ if (this.chargingStation.isConnectorAvailable(connectorId) === false) {
logger.info(
`${this.logPrefix(
connectorId