From 88adc4e8fb36faeaad97e222030760c367442e6d Mon Sep 17 00:00:00 2001 From: Noah Hilverling Date: Wed, 20 Mar 2019 11:28:09 +0100 Subject: [PATCH] Fix race condition --- main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.go b/main.go index dcfb0827..25300baa 100644 --- a/main.go +++ b/main.go @@ -49,9 +49,8 @@ func main() { go icingadb_json_decoder.DecodePool(super.ChDecode, super.ChErr, 16) + chHA := ha.RegisterNotificationListener() go func() { - chHA := ha.RegisterNotificationListener() - super.ChErr <- sync.Operator(&super, chHA, &sync.Context{ ObjectType: "host", Factory: host.NewHost,