Import cleanup
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 3 Sep 2022 21:24:53 +0000 (23:24 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 3 Sep 2022 21:24:53 +0000 (23:24 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ChargingStation.ts
src/charging-station/ChargingStationWorkerBroadcastChannel.ts

index 3b83dfe40578f637e2bc77a70f736f585a25d17e..b6628cd73ac63f0f0e2c0c1d4cd1ea5d54772e28 100644 (file)
@@ -1847,7 +1847,7 @@ export default class ChargingStation {
     // Stop heartbeat
     this.stopHeartbeat();
     // Stop ongoing transactions
-    if (this.automaticTransactionGenerator?.started) {
+    if (this.automaticTransactionGenerator?.started === true) {
       this.stopAutomaticTransactionGenerator();
     } else {
       await this.stopRunningTransactions(reason);
index 0c3af5887ee06b494269b426df6736df25374a37..086278784cb5eb7b1f1e53286207c6d41314d03e 100644 (file)
@@ -4,7 +4,6 @@ import {
   AuthorizationStatus,
   StartTransactionRequest,
   StartTransactionResponse,
-  StopTransactionReason,
   StopTransactionRequest,
   StopTransactionResponse,
 } from '../types/ocpp/Transaction';