Use helper to close connection
authorJérôme Benoit <jerome.benoit@sap.com>
Thu, 16 Jun 2022 14:51:16 +0000 (16:51 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Thu, 16 Jun 2022 14:51:16 +0000 (16:51 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ChargingStation.ts

index 82aaa25cacd759c62caa45393ae4cabb16a3560e..23ac2bdc843a1d740ba2f4a8c1ad5dfbe21f3037 100644 (file)
@@ -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);
   }