feat: add template tunable to stop transaction at CS stop
[e-mobility-charging-stations-simulator.git] / src / charging-station / ChargingStation.ts
index e7b71b0521da42570a7b9d8d9d0c351bfbee747b..033152d6bf0d62c760f4477f3324351198c4f31b 100644 (file)
@@ -2183,7 +2183,7 @@ export class ChargingStation extends EventEmitter {
 
   private async stopMessageSequence(
     reason?: StopTransactionReason,
-    stopTransactions = true,
+    stopTransactions = this.stationInfo?.stopTransactionsOnStopped ?? true,
   ): Promise<void> {
     // Stop WebSocket ping
     this.stopWebSocketPing();