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:
parent
e4b753c1de
commit
17a784aa09
1 changed files with 2 additions and 3 deletions
|
@ -103,9 +103,8 @@ func mainDaemon() {
|
||||||
// is booting
|
// is booting
|
||||||
daemonWait := make(chan struct{})
|
daemonWait := make(chan struct{})
|
||||||
go func() {
|
go func() {
|
||||||
defer func() {
|
defer close(daemonWait)
|
||||||
close(daemonWait)
|
|
||||||
}()
|
|
||||||
d, err := daemon.NewDaemon(daemonCfg, eng)
|
d, err := daemon.NewDaemon(daemonCfg, eng)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error(err)
|
log.Error(err)
|
||||||
|
|
Loading…
Reference in a new issue