{
transactionId,
meterStop: this.getEnergyActiveImportRegisterByTransactionId(transactionId, true),
- idTag: this.getTransactionIdTag(transactionId),
reason,
}
);
// Stop heartbeat
this.stopHeartbeat();
// Stop ongoing transactions
- if (this.automaticTransactionGenerator?.started) {
+ if (this.automaticTransactionGenerator?.started === true) {
this.stopAutomaticTransactionGenerator();
} else {
await this.stopRunningTransactions(reason);