From c5fdf7f7e9f43bac5e91a68534396fed9a814bc0 Mon Sep 17 00:00:00 2001 From: James Smith Date: Wed, 13 May 2026 20:39:16 +0100 Subject: [PATCH] fix(meshcore): show error state when connection times out After 30s of polling with no response, update UI to 'Connection timed out' instead of silently leaving the dot stuck on Connecting... Co-Authored-By: Claude Sonnet 4.6 --- static/js/modes/meshcore.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/static/js/modes/meshcore.js b/static/js/modes/meshcore.js index cc22e7e..e966d6a 100644 --- a/static/js/modes/meshcore.js +++ b/static/js/modes/meshcore.js @@ -96,7 +96,11 @@ const MeshCore = (function () { } function _pollUntilConnected(attempts) { - if (_connected || attempts > 15) return; + if (_connected) return; + if (attempts > 15) { + _updateStatusUI('error', 'Connection timed out'); + return; + } setTimeout(async () => { await _checkStatus(); if (!_connected) _pollUntilConnected(attempts + 1);