diff --git a/server/server.go b/server/server.go index 637ab860..6aafd0c9 100644 --- a/server/server.go +++ b/server/server.go @@ -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 }