Skip to content

Commit

Permalink
#317 properly close current protocol instance before re-connecting
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Aug 22, 2024
1 parent 22f192a commit ab0cb4a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions html5/js/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -2377,6 +2377,7 @@ class XpraClient {
this.packet_disconnect_reason(packet);
if (this.reconnect && this.reconnect_attempt < this.reconnect_count) {
this.emit_connection_lost();
this.close_protocol();
this.reconnect_attempt++;
this.do_reconnect();
} else {
Expand Down

0 comments on commit ab0cb4a

Please sign in to comment.