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 Dec 31, 2024
1 parent 25c3a42 commit 0eba93c
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 @@ -2265,6 +2265,7 @@ XpraClient.prototype._process_close = function(packet, ctx) {
ctx.packet_disconnect_reason(packet);
if (ctx.reconnect && ctx.reconnect_attempt<ctx.reconnect_count) {
ctx.emit_connection_lost();
ctx.close_protocol();
ctx.reconnect_attempt++;
ctx.do_reconnect();
}
Expand Down

0 comments on commit 0eba93c

Please sign in to comment.