home · contact · privacy
Fix previous fix (forgot to ignore a websocket in CONNECTING state).
authorChristian Heller <c.heller@plomlompom.de>
Thu, 10 Dec 2020 20:31:12 +0000 (21:31 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 10 Dec 2020 20:31:12 +0000 (21:31 +0100)
rogue_chat.html

index 1b62a81ad77c63aa1fc8b3f37697aab52c8f3759..86c4644af7c17e74399d5b14332337af7ba5fa7b 100644 (file)
@@ -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 …')
     }