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