Update stats_queue.go

This commit is contained in:
rbarrabe
2016-07-22 15:52:18 +02:00
committed by GitHub
parent 05f58e061d
commit f2bceb5fe0

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
}