diff --git a/html5/js/Client.js b/html5/js/Client.js
index e0eb1dad..3f55c0d6 100644
--- a/html5/js/Client.js
+++ b/html5/js/Client.js
@@ -2265,6 +2265,7 @@ XpraClient.prototype._process_close = function(packet, ctx) {
ctx.packet_disconnect_reason(packet);
if (ctx.reconnect && ctx.reconnect_attempt