diff --git a/pkg/hostman/host_services.go b/pkg/hostman/host_services.go index 201440969f..8292be6ad6 100644 --- a/pkg/hostman/host_services.go +++ b/pkg/hostman/host_services.go @@ -88,8 +88,11 @@ func (host *SHostService) RunService() { hostmetrics.Start() }) }) - host.initHandlers(app) - <-hostinfo.Instance().IsRegistered // wait host and guest init + + go func() { + <-hostinfo.Instance().IsRegistered // wait host and guest init + host.initHandlers(app) + }() // Init Metadata handler go metadata.StartService(