mirror of
https://github.com/AlchemillaHQ/Sylve.git
synced 2026-06-14 00:46:34 +03:00
ui: init: fix reboot check
This commit is contained in:
@@ -15,6 +15,10 @@
|
||||
try {
|
||||
const health = await getBasicHealth();
|
||||
|
||||
if (!health || ('status' in health && health.status === 'error')) {
|
||||
throw new Error('System is down');
|
||||
}
|
||||
|
||||
if (!wentDown) {
|
||||
// still up → wait for it to go down
|
||||
await new Promise((r) => setTimeout(r, intervalMs));
|
||||
|
||||
Reference in New Issue
Block a user