[asterisk-commits] trunk r10142 - /trunk/channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Feb 14 18:55:20 MST 2006


Author: kpfleming
Date: Tue Feb 14 19:55:20 2006
New Revision: 10142

URL: http://svn.digium.com/view/asterisk?rev=10142&view=rev
Log:
remove code that does not appear to do anything useful (issue #6059)

Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?rev=10142&r1=10141&r2=10142&view=diff
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Tue Feb 14 19:55:20 2006
@@ -11377,15 +11377,7 @@
 			ast_mutex_unlock(&sip->lock);
 		}
 		ast_mutex_unlock(&iflock);
-		/* Don't let anybody kill us right away.  Nobody should lock the interface list
-		   and wait for the monitor list, but the other way around is okay. */
-		ast_mutex_lock(&monlock);
-		/* Lock the network interface */
-		ast_mutex_lock(&netlock);
-		/* Okay, now that we know what to do, release the network lock */
-		ast_mutex_unlock(&netlock);
-		/* And from now on, we're okay to be killed, so release the monitor lock as well */
-		ast_mutex_unlock(&monlock);
+
 		pthread_testcancel();
 		/* Wait for sched or io */
 		res = ast_sched_wait(sched);



More information about the asterisk-commits mailing list