From 67f0a988575c089d303e926feac4883c38e56bee Mon Sep 17 00:00:00 2001 From: Patrick Pacher Date: Wed, 7 Oct 2020 09:20:53 +0200 Subject: [PATCH] Fix incorrect usage of PushFunc in status package --- status/provider.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/status/provider.go b/status/provider.go index 130972db..863b11be 100644 --- a/status/provider.go +++ b/status/provider.go @@ -89,5 +89,9 @@ func pushSystemStatus() { return } - pushUpdate(buildSystemStatus()) + record := buildSystemStatus() + record.Lock() + defer record.Unlock() + + pushUpdate(record) }