Merge pull request #490 from rbarrabe/patch-7

Condition to update only triggers in cdrstats
This commit is contained in:
Radu Ioan Fericean
2016-07-22 18:57:29 +03:00
committed by GitHub

View File

@@ -76,7 +76,7 @@ func (sq *StatsQueue) UpdateConf(conf *CdrStats) {
sq.mux.Lock()
defer sq.mux.Unlock()
// check if new conf asks for action trigger reset only
if sq.conf != nil && (!conf.hasGeneralConfigs() || sq.conf.equalExceptTriggers(conf)) {
if sq.conf != nil && (conf.hasGeneralConfigs() || sq.conf.equalExceptTriggers(conf)) {
sq.conf.Triggers = conf.Triggers
return
}