Merge pull request #1076 from runcom/close-ch
server: correctly return and close ch from exits routine
This commit is contained in:
commit
1442bb7ed7
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 {
|
||||
logrus.Errorf("watcher.Add(%q) failed: %s", s.config.ContainerExitsDir, err)
|
||||
close(done)
|
||||
}
|
||||
<-done
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue