1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

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)