mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-13 04:57:05 +00:00
tweak sofia profile shutdown
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11656 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
b761924f34
commit
686c1c6c1f
2 files changed
+16
-6
No files matched your search
@@ -142,8 +142,8 @@ SWITCH_DECLARE(void) switch_core_session_hupall(switch_call_cause_t cause)
|
||||
switch_mutex_unlock(runtime.throttle_mutex);
|
||||
|
||||
while (session_manager.session_count > 0) {
|
||||
switch_yield(100000);
|
||||
if (++loops == 100) {
|
||||
switch_yield(1000000);
|
||||
if (++loops == 30) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Giving up with %d session%s remaining\n",
|
||||
session_manager.session_count, session_manager.session_count == 1 ? "" : "s");
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user