Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Aug 22, 2024
1 parent 19d3375 commit 4fc0fea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion html5/js/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -2312,7 +2312,7 @@ class XpraClient {
_process_error(packet) {
const code = Number.parseInt(packet[2]);
let reconnect = this.reconnect || this.reconnect_attempt < this.reconnect_count;
if (reconnect && code >= 0 && [0, 1006, 1008, 1010, 1014, 1015].includes(code)) {
if (reconnect && [0, 1006, 1008, 1010, 1014, 1015].includes(code)) {
// don't re-connect unless we had actually managed to connect
// (because these specific websocket error codes are likely permanent)
reconnect = this.connected;
Expand Down

0 comments on commit 4fc0fea

Please sign in to comment.