cleanup defer func
Docker-DCO-1.1-Signed-off-by: Jessie Frazelle <hugs@docker.com> (github: jfrazelle)
This commit is contained in:
parent
e4b753c1de
commit
17a784aa09
1 changed files with 2 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue