Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
// Stop heartbeat
this.stopHeartbeat();
// Stop ongoing transactions
- if (this.automaticTransactionGenerator?.started) {
+ if (this.automaticTransactionGenerator?.started === true) {
this.stopAutomaticTransactionGenerator();
} else {
await this.stopRunningTransactions(reason);
AuthorizationStatus,
StartTransactionRequest,
StartTransactionResponse,
- StopTransactionReason,
StopTransactionRequest,
StopTransactionResponse,
} from '../types/ocpp/Transaction';