[Freeswitch-svn] [commit] r7033 - freeswitch/trunk/src/mod/endpoints/mod_sofia
Freeswitch SVN
mikej at freeswitch.org
Sun Dec 30 18:25:45 EST 2007
Author: mikej
Date: Sun Dec 30 18:25:45 2007
New Revision: 7033
Modified:
freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c
Log:
avoid deadlock
Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c (original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c Sun Dec 30 18:25:45 2007
@@ -1081,13 +1081,14 @@
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),
More information about the Freeswitch-svn
mailing list