forked from Mirrors/freeswitch
avoid deadlock
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7033 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
5cd9d10ee1
commit
ebdab14c23
@ -1081,13 +1081,14 @@ void sofia_presence_handle_sip_i_subscribe(int status,
|
||||
sofia_glue_execute_sql(profile, SWITCH_FALSE, sql, NULL);
|
||||
free(sql);
|
||||
|
||||
switch_mutex_unlock(profile->ireg_mutex);
|
||||
sstr = switch_mprintf("active;expires=%ld", exp_raw);
|
||||
if (status < 200) {
|
||||
switch_core_hash_insert(profile->sub_hash, call_id, nh);
|
||||
}
|
||||
}
|
||||
|
||||
switch_mutex_unlock(profile->ireg_mutex);
|
||||
|
||||
if (status < 200) {
|
||||
nua_respond(nh, SIP_202_ACCEPTED,
|
||||
NUTAG_WITH_THIS(nua),
|
||||
|
Loading…
Reference in New Issue
Block a user