提交 155420a7 authored 作者: Anthony Minessale's avatar Anthony Minessale

tweaks part 2

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2329 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 9018439d
......@@ -291,7 +291,7 @@ SWITCH_DECLARE(void) switch_core_session_hupall(void)
}
switch_mutex_unlock(runtime.session_table_mutex);
while(runtime.session_count) {
while(runtime.session_count > 0) {
switch_yield(10000);
}
}
......@@ -2492,7 +2492,9 @@ SWITCH_DECLARE(void) switch_core_session_destroy(switch_core_session_t **session
pool = NULL;
switch_mutex_lock(runtime.session_table_mutex);
runtime.session_count--;
if (runtime.session_count) {
runtime.session_count--;
}
switch_mutex_unlock(runtime.session_table_mutex);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论