From 1b86b57b07070be40fe3908b35138b61c8b36e0c Mon Sep 17 00:00:00 2001 From: Antonio Murdaca Date: Fri, 2 Mar 2018 13:43:09 +0100 Subject: [PATCH] server: prevent double channel close Signed-off-by: Antonio Murdaca --- server/server.go | 2 -- 1 file changed, 2 deletions(-) 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...")