Fix race condition

This commit is contained in:
Noah Hilverling 2019-03-20 11:28:09 +01:00
parent c5fe05f6cd
commit 88adc4e8fb

View file

@ -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,