diff --git a/internal/web/ui.go b/internal/web/ui.go index 7f84b00..4c485af 100644 --- a/internal/web/ui.go +++ b/internal/web/ui.go @@ -942,15 +942,15 @@ func (u *UI) ensureDevicesLoaded() { } devices := u.registry.GetDevices() if len(devices) > 0 { - // Check if any device is offline; trigger discovery to refresh - hasOffline := false + // Check if any device is online; if not, try discovery to refresh + hasOnline := false for _, d := range devices { - if !d.Online { - hasOffline = true + if d.Online { + hasOnline = true break } } - if !hasOffline { + if hasOnline { return } } diff --git a/safesightd-linux-arm64 b/safesightd-linux-arm64 index 0fc63ca..ee5855e 100644 Binary files a/safesightd-linux-arm64 and b/safesightd-linux-arm64 differ