From: Christian Heller Date: Thu, 10 Dec 2020 20:31:12 +0000 (+0100) Subject: Fix previous fix (forgot to ignore a websocket in CONNECTING state). X-Git-Url: https://plomlompom.com/repos/%22https:/validator.w3.org/%7B%7Bitem_name%7D%7D?a=commitdiff_plain;h=b994aab7c4bed038ab857b0c11ca8a1a77d69d50;p=plomrogue2 Fix previous fix (forgot to ignore a websocket in CONNECTING state). --- diff --git a/rogue_chat.html b/rogue_chat.html index 1b62a81..86c4644 100644 --- a/rogue_chat.html +++ b/rogue_chat.html @@ -1660,7 +1660,7 @@ for (let key_selector of key_selectors) { window.setInterval(function() { if (server.websocket.readyState == 1) { server.send(['PING']); - } else { + } else if (server.websocket.readyState != 0) { server.reconnect_to(server.url); tui.log_msg('@ attempting reconnect …') }