Fix incorrect usage of PushFunc in status package

This commit is contained in:
Patrick Pacher 2020-10-07 09:20:53 +02:00
parent f496330b35
commit 67f0a98857
No known key found for this signature in database
GPG key ID: E8CD2DA160925A6D

View file

@ -89,5 +89,9 @@ func pushSystemStatus() {
return
}
pushUpdate(buildSystemStatus())
record := buildSystemStatus()
record.Lock()
defer record.Unlock()
pushUpdate(record)
}