mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Smaller time sleep duration
This commit is contained in:
@@ -327,7 +327,7 @@ func (sm *FSSessionManager) Shutdown() (err error) {
|
||||
fsock.SendApiCmd("hupall MANAGER_REQUEST cgr_reqtype prepaid")
|
||||
fsock.SendApiCmd("hupall MANAGER_REQUEST cgr_reqtype postpaid")
|
||||
for len(sm.sessions)>0 {
|
||||
time.Sleep(500*time.Millisecond)
|
||||
time.Sleep(100*time.Millisecond) // wait for the hungup event to be fired
|
||||
rater.Logger.Info(fmt.Sprintf("sessions: %s", sm.sessions))
|
||||
}
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user