diff --git a/cmd/helm-operator/main.go b/cmd/helm-operator/main.go index 64bf052ba..f4912c42a 100644 --- a/cmd/helm-operator/main.go +++ b/cmd/helm-operator/main.go @@ -131,7 +131,7 @@ func main() { errc <- fmt.Errorf("%s", <-c) }() - defer func() { + go func() { logger.Log("exiting...", <-errc) close(shutdown) shutdownWg.Wait()