[Asterisk-cvs] asterisk/channels chan_mgcp.c,1.93,1.94

markster at lists.digium.com markster at lists.digium.com
Wed Nov 17 09:47:47 CST 2004


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv22978/channels

Modified Files:
	chan_mgcp.c 
Log Message:
Small bug big fix for MGCP (bug #2888)


Index: chan_mgcp.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_mgcp.c,v
retrieving revision 1.93
retrieving revision 1.94
diff -u -d -r1.93 -r1.94
--- chan_mgcp.c	15 Nov 2004 14:29:15 -0000	1.93
+++ chan_mgcp.c	17 Nov 2004 14:48:16 -0000	1.94
@@ -580,6 +580,7 @@
 			if (!ast_mutex_trylock(&sub->owner->lock)) {
 				ast_queue_frame(sub->owner, f);
 				ast_mutex_unlock(&sub->owner->lock);
+				break;
 			} else {
 				ast_mutex_unlock(&sub->lock);
 				usleep(1);
@@ -597,6 +598,7 @@
 			if (!ast_mutex_trylock(&sub->owner->lock)) {
 				ast_queue_hangup(sub->owner);
 				ast_mutex_unlock(&sub->owner->lock);
+				break;
 			} else {
 				ast_mutex_unlock(&sub->lock);
 				usleep(1);




More information about the svn-commits mailing list