server: correctly return and close ch from exits routine

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
Antonio Murdaca 2017-10-26 16:54:19 +02:00
parent b416ee13a0
commit 584a256388
No known key found for this signature in database
GPG key ID: B2BEAD150DE936B9

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
}