Merge pull request #1078 from mrunalp/close_ch_1.0
server: correctly return and close ch from exits routine
This commit is contained in:
commit
ffe0d51a3c
1 changed files with 1 additions and 0 deletions
|
@ -418,6 +418,7 @@ func (s *Server) StartExitMonitor() {
|
||||||
}()
|
}()
|
||||||
if err := watcher.Add(s.config.ContainerExitsDir); err != nil {
|
if err := watcher.Add(s.config.ContainerExitsDir); err != nil {
|
||||||
logrus.Errorf("watcher.Add(%q) failed: %s", s.config.ContainerExitsDir, err)
|
logrus.Errorf("watcher.Add(%q) failed: %s", s.config.ContainerExitsDir, err)
|
||||||
|
close(done)
|
||||||
}
|
}
|
||||||
<-done
|
<-done
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue