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,