cleanup defer func

Docker-DCO-1.1-Signed-off-by: Jessie Frazelle <hugs@docker.com> (github: jfrazelle)
This commit is contained in:
Jessica Frazelle 2015-03-10 12:18:43 -07:00
parent e4b753c1de
commit 17a784aa09

View file

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