started
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
)
return false
}
+ const connectorStatus = this.chargingStation.getConnectorStatus(connectorId)
+ if (connectorStatus?.transactionStarted === true) {
+ logger.info(
+ `${this.logPrefix(
+ connectorId
+ )} entered in transaction loop while a transaction ${connectorStatus.transactionId} is already started on connector ${connectorId}`
+ )
+ return false
+ }
return true
}
logger.info(
`${this.logPrefix(
connectorId
- )} transaction loop waiting for running transaction ${connectorStatus.transactionId} on connector ${connectorId} to be stopped`
+ )} transaction loop waiting for started transaction ${connectorStatus.transactionId} on connector ${connectorId} to be stopped`
)
logged = true
}