SMGeneric - fix for unprotected session terminators

This commit is contained in:
DanB
2016-11-14 11:37:03 +01:00
parent ce23852583
commit f393840156

View File

@@ -194,9 +194,11 @@ func (smg *SMGeneric) unrecordASession(cgrID string) bool {
return false
}
delete(smg.activeSessions, cgrID)
smg.sTsMux.RLock()
if st, found := smg.sessionTerminators[cgrID]; found {
st.endChan <- true
}
smg.sTsMux.RUnlock()
smg.unindexSession(cgrID, false)
return true
}