提交 ebdab14c authored 作者: Michael Jerris's avatar Michael Jerris

avoid deadlock

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7033 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 5cd9d10e
...@@ -1081,13 +1081,14 @@ void sofia_presence_handle_sip_i_subscribe(int status, ...@@ -1081,13 +1081,14 @@ void sofia_presence_handle_sip_i_subscribe(int status,
sofia_glue_execute_sql(profile, SWITCH_FALSE, sql, NULL); sofia_glue_execute_sql(profile, SWITCH_FALSE, sql, NULL);
free(sql); free(sql);
switch_mutex_unlock(profile->ireg_mutex);
sstr = switch_mprintf("active;expires=%ld", exp_raw); sstr = switch_mprintf("active;expires=%ld", exp_raw);
if (status < 200) { if (status < 200) {
switch_core_hash_insert(profile->sub_hash, call_id, nh); switch_core_hash_insert(profile->sub_hash, call_id, nh);
} }
} }
switch_mutex_unlock(profile->ireg_mutex);
if (status < 200) { if (status < 200) {
nua_respond(nh, SIP_202_ACCEPTED, nua_respond(nh, SIP_202_ACCEPTED,
NUTAG_WITH_THIS(nua), NUTAG_WITH_THIS(nua),
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论