fix(hub): synchronise system status access (#2452)

This commit is contained in:
user01010111
2026-09-29 11:58:46 +13:00
committed by GitHub
parent 083b28a1fc
commit 09a277f074
4 changed files with 26 additions and 10 deletions

View File

@@ -47,7 +47,7 @@ func bindNetworkMonitorsEvents(hub *Hub) {
// If connected, run the monitor immediately. Paused systems may be absent
// from the manager; their monitors will sync when they reconnect.
system, err := hub.sm.GetSystem(e.Record.GetString("system"))
if err == nil && system.Status == "up" {
if err == nil && system.GetStatus() == "up" {
go hub.upsertNetworkMonitor(e.Record, true)
}
return nil