Allow to send result message when station is in pending mode.
authorSébastien Savalle <>
Fri, 15 Apr 2022 09:16:33 +0000 (11:16 +0200)
committerSébastien Savalle <>
Fri, 15 Apr 2022 09:16:33 +0000 (11:16 +0200)
src/charging-station/ocpp/OCPPRequestService.ts

index 2813d39aad5c0ca89f4e6af9ffc31615182b4dfc..021e09f369edb855d5be7d161e512f073d3504a3 100644 (file)
@@ -126,7 +126,8 @@ export default abstract class OCPPRequestService {
       (!this.chargingStation.getOcppStrictCompliance() &&
         this.chargingStation.isInUnknownState()) ||
       this.chargingStation.isInAcceptedState() ||
-      (this.chargingStation.isInPendingState() && params.triggerMessage)
+      (this.chargingStation.isInPendingState() &&
+        (params.triggerMessage || messageType === MessageType.CALL_RESULT_MESSAGE))
     ) {
       // eslint-disable-next-line @typescript-eslint/no-this-alias
       const self = this;