From b994aab7c4bed038ab857b0c11ca8a1a77d69d50 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Thu, 10 Dec 2020 21:31:12 +0100
Subject: [PATCH] Fix previous fix (forgot to ignore a websocket in CONNECTING
 state).

---
 rogue_chat.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 …')
     }
-- 
2.30.2