From: Jérôme Benoit Date: Mon, 20 Nov 2023 21:43:12 +0000 (+0100) Subject: refactor: explicit condition check in OCPP stack X-Git-Tag: v1.2.26~18 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=9aa1a33f94dfe5b96a4715f87fb630a63b3250a6;p=e-mobility-charging-stations-simulator.git refactor: explicit condition check in OCPP stack Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ocpp/OCPPRequestService.ts b/src/charging-station/ocpp/OCPPRequestService.ts index 794f3e25..07793a8f 100644 --- a/src/charging-station/ocpp/OCPPRequestService.ts +++ b/src/charging-station/ocpp/OCPPRequestService.ts @@ -387,7 +387,10 @@ export abstract class OCPPRequestService { errorCallback, ); } - } else if (messageType === MessageType.CALL_MESSAGE) { + } else if ( + params?.skipBufferingOnError === true && + messageType === MessageType.CALL_MESSAGE + ) { // Remove request from the cache chargingStation.requests.delete(messageId); }