Merge pull request #1405 from runcom/closed-channel
server: prevent double channel close
This commit is contained in:
commit
66d3ab890f
1 changed files with 0 additions and 2 deletions
|
@ -389,7 +389,6 @@ func (s *Server) StartHooksMonitor() {
|
||||||
}
|
}
|
||||||
case err := <-watcher.Errors:
|
case err := <-watcher.Errors:
|
||||||
logrus.Debugf("watch error: %v", err)
|
logrus.Debugf("watch error: %v", err)
|
||||||
close(done)
|
|
||||||
return
|
return
|
||||||
case <-s.monitorsChan:
|
case <-s.monitorsChan:
|
||||||
logrus.Debug("closing hooks monitor...")
|
logrus.Debug("closing hooks monitor...")
|
||||||
|
@ -448,7 +447,6 @@ func (s *Server) StartExitMonitor() {
|
||||||
}
|
}
|
||||||
case err := <-watcher.Errors:
|
case err := <-watcher.Errors:
|
||||||
logrus.Debugf("watch error: %v", err)
|
logrus.Debugf("watch error: %v", err)
|
||||||
close(done)
|
|
||||||
return
|
return
|
||||||
case <-s.monitorsChan:
|
case <-s.monitorsChan:
|
||||||
logrus.Debug("closing exit monitor...")
|
logrus.Debug("closing exit monitor...")
|
||||||
|
|
Loading…
Reference in a new issue