Skip to content

Commit

Permalink
fix ev code
Browse files Browse the repository at this point in the history
  • Loading branch information
shiv3 committed Jul 7, 2024
1 parent d16eec5 commit 86bfa90
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cp/ChargePoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ export class ChargePoint {
this._logger.error(
`WebSocket closed code: ${ev.code} reason: ${ev.reason}`
);
this.error = `WebSocket closed code: ${ev.code} reason: ${ev.reason}`;
if(ev.code !== 1005) {
this.error = `WebSocket closed code: ${ev.code} reason: ${ev.reason}`;
}
}
);
}
Expand Down

0 comments on commit 86bfa90

Please sign in to comment.