X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2Focpp%2FOCPPRequestService.ts;h=444e5fc67965081cc8a3b3a24c64b9c52ae9e4b8;hb=1864d7f5e1f7bdb0f696804c2e2c3694cec5a3d3;hp=fc5e60ad855bc5f7ff21efaaebf3cc8aa8681b52;hpb=32b0224999178acf1101ff9075c95072d207206e;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/ocpp/OCPPRequestService.ts b/src/charging-station/ocpp/OCPPRequestService.ts index fc5e60ad..444e5fc6 100644 --- a/src/charging-station/ocpp/OCPPRequestService.ts +++ b/src/charging-station/ocpp/OCPPRequestService.ts @@ -46,7 +46,7 @@ export default abstract class OCPPRequestService { reject(new OCPPError(commandParams?.code ?? ErrorType.GENERIC_ERROR, commandParams?.message ?? `WebSocket closed for message id '${messageId}' with content '${messageToSend}', message buffered`, commandParams?.details ?? {})); } // Response? - if (messageType === MessageType.CALL_RESULT_MESSAGE) { + if (messageType !== MessageType.CALL_MESSAGE) { // Yes: send Ok resolve(commandName); } else {