diff --git a/server/server.go b/server/server.go index a6378014..5989388f 100644 --- a/server/server.go +++ b/server/server.go @@ -389,7 +389,6 @@ func (s *Server) StartHooksMonitor() { } case err := <-watcher.Errors: logrus.Debugf("watch error: %v", err) - close(done) return case <-s.monitorsChan: logrus.Debug("closing hooks monitor...") @@ -448,7 +447,6 @@ func (s *Server) StartExitMonitor() { } case err := <-watcher.Errors: logrus.Debugf("watch error: %v", err) - close(done) return case <-s.monitorsChan: logrus.Debug("closing exit monitor...")