CDRE config reload, fixes #110, improved handling of the CDRC reloads without sync

This commit is contained in:
DanB
2015-09-12 20:49:53 +02:00
parent e5f0380af6
commit b7f839de31
7 changed files with 44 additions and 37 deletions

View File

@@ -174,8 +174,7 @@ func (self *Cdrc) Run() error {
// Not automated, process and sleep approach
for {
select {
case closeChan := <-self.closeChan: // Exit, reinject closeChan for other CDRCs
self.closeChan <- closeChan
case <-self.closeChan: // Exit, reinject closeChan for other CDRCs
engine.Logger.Info(fmt.Sprintf("<Cdrc> Shutting down CDRC on path %s.", self.cdrInDir))
return nil
default: