Merge pull request #224 from smittix/fix/meshcore-connect-timeout

fix(meshcore): show error when connection times out
This commit is contained in:
Smittix
2026-05-13 20:39:30 +01:00
committed by GitHub
+5 -1
View File
@@ -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);