提交 8c188005 authored 作者: Anthony Minessale's avatar Anthony Minessale

wtf was that?

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5390 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 e5daa7cc
......@@ -227,6 +227,8 @@ switch_status_t sofia_on_hangup(switch_core_session_t *session)
switch_core_session_rwunlock(a_session);
}
switch_mutex_lock(tech_pvt->profile->flag_mutex);
if (tech_pvt->nh) {
if (!switch_test_flag(tech_pvt, TFLAG_BYE)) {
if (switch_test_flag(tech_pvt, TFLAG_ANS)) {
......@@ -241,13 +243,11 @@ switch_status_t sofia_on_hangup(switch_core_session_t *session)
nua_cancel(tech_pvt->nh, TAG_END());
}
}
switch_set_flag_locked(tech_pvt, TFLAG_BYE);
switch_set_flag(tech_pvt, TFLAG_BYE);
}
}
switch_clear_flag_locked(tech_pvt, TFLAG_IO);
switch_clear_flag(tech_pvt, TFLAG_IO);
tech_pvt->profile->inuse--;
switch_mutex_unlock(tech_pvt->profile->flag_mutex);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论