fix: ensure running transactions are stopped at CS stop
[e-mobility-charging-stations-simulator.git] / src / charging-station / broadcast-channel / ChargingStationWorkerBroadcastChannel.ts
index ee423e1e1a8b06037bd9b59c6697218b77edf96e..fff823c09b22989f441c6b88968018a6acc933a6 100644 (file)
@@ -87,10 +87,8 @@ export class ChargingStationWorkerBroadcastChannel extends WorkerBroadcastChanne
       ],
       [
         BroadcastChannelProcedureName.STOP_AUTOMATIC_TRANSACTION_GENERATOR,
-        async (requestPayload?: BroadcastChannelRequestPayload) =>
-          await this.chargingStation.stopAutomaticTransactionGenerator(
-            requestPayload?.connectorIds,
-          ),
+        (requestPayload?: BroadcastChannelRequestPayload) =>
+          this.chargingStation.stopAutomaticTransactionGenerator(requestPayload?.connectorIds),
       ],
       [
         BroadcastChannelProcedureName.SET_SUPERVISION_URL,