FS-7486
This commit is contained in:
parent
20be305b1c
commit
b6a6cde728
|
@ -1862,9 +1862,10 @@ static void *SWITCH_THREAD_FUNC switch_core_session_thread_pool_manager(switch_t
|
|||
xsleep = 10000;
|
||||
}
|
||||
|
||||
switch_mutex_lock(session_manager.cond2_mutex);
|
||||
switch_thread_cond_timedwait(session_manager.cond, session_manager.cond_mutex, xsleep);
|
||||
switch_mutex_unlock(session_manager.cond2_mutex);
|
||||
if (switch_mutex_trylock(session_manager.cond2_mutex) == SWITCH_STATUS_SUCCESS) {
|
||||
switch_thread_cond_timedwait(session_manager.cond, session_manager.cond_mutex, xsleep);
|
||||
switch_mutex_unlock(session_manager.cond2_mutex);
|
||||
}
|
||||
|
||||
|
||||
if (switch_micro_time_now() >= next) {
|
||||
|
|
Loading…
Reference in New Issue