From: Jérôme Benoit Date: Thu, 16 Jun 2022 14:51:16 +0000 (+0200) Subject: Use helper to close connection X-Git-Tag: v1.1.63~3 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=bcc9c3c094c6293638aaaa690bb673193546680b;p=e-mobility-charging-stations-simulator.git Use helper to close connection Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ChargingStation.ts b/src/charging-station/ChargingStation.ts index 82aaa25c..23ac2bdc 100644 --- a/src/charging-station/ChargingStation.ts +++ b/src/charging-station/ChargingStation.ts @@ -1475,7 +1475,7 @@ export default class ChargingStation { } private onError(error: WSError): void { - this.wsConnection.close(); + this.closeWSConnection(); logger.error(this.logPrefix() + ' WebSocket error: %j', error); }