[Freeswitch-svn] [commit] r5390 - freeswitch/trunk/src/mod/endpoints/mod_sofia

Freeswitch SVN anthm at freeswitch.org
Tue Jun 19 12:30:00 EDT 2007


Author: anthm
Date: Tue Jun 19 12:29:59 2007
New Revision: 5390

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c

Log:
wtf was that?

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	Tue Jun 19 12:29:59 2007
@@ -227,6 +227,8 @@
 		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 @@
 					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);
 



More information about the Freeswitch-svn mailing list