-// Partial Copyright Jerome Benoit. 2021. All Rights Reserved.
+// Partial Copyright Jerome Benoit. 2021-2023. All Rights Reserved.
import { AsyncResource } from 'async_hooks';
}
private checkChargingStation(connectorId?: number): boolean {
- if (this.chargingStation.started === false) {
+ if (this.chargingStation.started === false && this.chargingStation.starting === false) {
logger.warn(`${this.logPrefix(connectorId)} charging station is stopped, cannot proceed`);
+ return false;
}
- return this.chargingStation.started;
+ return true;
}
}