X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2Focpp%2FOCPPRequestService.ts;h=1e9df7cadd97458218d7117d1b8f51c4bd607b6f;hb=9292e32a92f3ef63ee5a3cf86dc497b8acae5d2d;hp=a9f9b846d0d71785e4c12703e97384040fb39543;hpb=a6b3c6c313f1c0314a1445ed630cac85edf55b2c;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/ocpp/OCPPRequestService.ts b/src/charging-station/ocpp/OCPPRequestService.ts index a9f9b846..1e9df7ca 100644 --- a/src/charging-station/ocpp/OCPPRequestService.ts +++ b/src/charging-station/ocpp/OCPPRequestService.ts @@ -24,7 +24,7 @@ export default abstract class OCPPRequestService { } public async sendMessage(messageId: string, commandParams: any, messageType: MessageType, commandName: RequestCommand | IncomingRequestCommand, - skipBuffering = false): Promise { + skipBufferingOnError = false): Promise { // eslint-disable-next-line @typescript-eslint/no-this-alias const self = this; // Send a message through wsConnection @@ -58,7 +58,7 @@ export default abstract class OCPPRequestService { const beginId = PerformanceStatistics.beginMeasure(commandName); this.chargingStation.wsConnection.send(messageToSend); PerformanceStatistics.endMeasure(commandName, beginId); - } else if (!skipBuffering) { + } else if (!skipBufferingOnError) { // Buffer it this.chargingStation.addToMessageQueue(messageToSend); // Reject it