This commit is contained in:
cui 2026-06-18 20:35:53 +00:00 committed by GitHub
commit db2bbc8656
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -220,7 +220,7 @@ func (hub *Hub) refreshWallets() {
for len(hub.wallets) > 0 { for len(hub.wallets) > 0 {
// Abort if we're past the current device and found an operational one // Abort if we're past the current device and found an operational one
_, failure := hub.wallets[0].Status() _, failure := hub.wallets[0].Status()
if hub.wallets[0].URL().Cmp(url) >= 0 || failure == nil { if hub.wallets[0].URL().Cmp(url) >= 0 && failure == nil {
break break
} }
// Drop the stale and failed devices // Drop the stale and failed devices