improve connection monitor and server restart

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2026-04-25 08:50:57 +02:00
parent 15c23ebb80
commit 5baa23300d
6 changed files with 50 additions and 22 deletions
+3 -1
View File
@@ -26,7 +26,9 @@ async function authFetch(url, options = {}) {
res = await fetch(url, options);
if (!res.ok) error('fetch', { status: res?.status || 503, url, user, token });
} catch (err) {
error('fetch', { status: res?.status || 503, url, user, token, error: err });
if (ConnectionMonitorState.online) {
error('fetch', { status: res?.status || 503, url, user, token, error: err });
}
}
return res;
}