server: prevent double channel close
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
0b736bb43f
commit
1b86b57b07
1 changed files with 0 additions and 2 deletions
|
@ -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...")
|
||||
|
|
Loading…
Reference in a new issue