mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-17 06:09:53 +05:00
SMGeneric - fix for unprotected session terminators
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user