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