Merge pull request #1078 from mrunalp/close_ch_1.0

server: correctly return and close ch from exits routine
This commit is contained in:
Mrunal Patel 2017-10-26 19:06:39 -07:00 committed by GitHub
commit ffe0d51a3c
1 changed files with 1 additions and 0 deletions

View File

@ -418,6 +418,7 @@ func (s *Server) StartExitMonitor() {
}()
if err := watcher.Add(s.config.ContainerExitsDir); err != nil {
logrus.Errorf("watcher.Add(%q) failed: %s", s.config.ContainerExitsDir, err)
close(done)
}
<-done
}