Update responder.go

Responder.GetDerivedMaxSessionTime proper reply caching, fixes #667.
This commit is contained in:
Dan Christian Bogos
2017-05-10 12:34:16 +02:00
committed by GitHub
parent 230670e687
commit 2a9aabf39f

View File

@@ -380,8 +380,8 @@ func (rs *Responder) GetDerivedMaxSessionTime(ev *CDR, reply *float64) error {
maxCallDuration = remainingDuration
}
}
rs.getCache().Cache(cacheKey, &cache.CacheItem{Value: maxCallDuration})
*reply = maxCallDuration
rs.getCache().Cache(cacheKey, &cache.CacheItem{Value: reply})
return nil
}