status: OCPP16FirmwareStatus.Downloaded,
});
chargingStation.stationInfo.firmwareStatus = OCPP16FirmwareStatus.Downloaded;
+ let wasTransactionsStarted = false;
let transactionsStarted: boolean;
do {
let trxCount = 0;
);
await Utils.sleep(waitTime);
transactionsStarted = true;
+ wasTransactionsStarted = true;
} else {
for (const connectorId of chargingStation.connectors.keys()) {
if (
transactionsStarted = false;
}
} while (transactionsStarted);
- await Utils.sleep(Utils.getRandomInteger(maxDelay, minDelay) * 1000);
+ !wasTransactionsStarted &&
+ (await Utils.sleep(Utils.getRandomInteger(maxDelay, minDelay) * 1000));
if (
ChargingStationUtils.checkChargingStation(chargingStation, chargingStation.logPrefix()) ===
false