mirror of
https://github.com/vladmandic/automatic
synced 2026-09-18 08:44:33 +02:00
improve connection monitor and server restart
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user