mirror of
https://github.com/henrygd/beszel.git
synced 2026-09-30 05:17:49 +02:00
fix(hub): synchronise system status access (#2452)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user