diff --git a/docker/daemon.go b/docker/daemon.go index 38f808a124..74901d09d9 100644 --- a/docker/daemon.go +++ b/docker/daemon.go @@ -103,9 +103,8 @@ func mainDaemon() { // is booting daemonWait := make(chan struct{}) go func() { - defer func() { - close(daemonWait) - }() + defer close(daemonWait) + d, err := daemon.NewDaemon(daemonCfg, eng) if err != nil { log.Error(err)