From ab0cb4a047de5135063381b21ac103efa78a98ce Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Thu, 22 Aug 2024 12:13:29 +0700 Subject: [PATCH] #317 properly close current protocol instance before re-connecting --- html5/js/Client.js | 1 + 1 file changed, 1 insertion(+) diff --git a/html5/js/Client.js b/html5/js/Client.js index aad7ee46..248cc268 100644 --- a/html5/js/Client.js +++ b/html5/js/Client.js @@ -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 {