ui: init: fix reboot check

This commit is contained in:
hayzam
2026-03-29 09:36:26 +05:30
parent 13d19b3c70
commit 04728ce518
@@ -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));