[asterisk-commits] trunk - r8017 /trunk/pbx.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Jan 12 11:34:11 CST 2006


Author: markster
Date: Thu Jan 12 11:34:10 2006
New Revision: 8017

URL: http://svn.digium.com/view/asterisk?rev=8017&view=rev
Log:
Remove unnecessary (but unexecutable) unlocks, cleanup code (bug #6220)

Modified:
    trunk/pbx.c

Modified: trunk/pbx.c
URL: http://svn.digium.com/view/asterisk/trunk/pbx.c?rev=8017&r1=8016&r2=8017&view=diff
==============================================================================
--- trunk/pbx.c (original)
+++ trunk/pbx.c Thu Jan 12 11:34:10 2006
@@ -5058,7 +5058,7 @@
 			   is searching through it. */
 			if (ast_mutex_lock(&tmp->lock)) {
 				ast_log(LOG_WARNING, "Unable to lock context lock\n");
-				return;
+				break;
 			}
 			if (tmpl)
 				tmpl->next = tmp->next;
@@ -5105,8 +5105,7 @@
 				tmpil = NULL;
 				continue;
 			}
-			ast_mutex_unlock(&conlock);
-			return;
+			break;
 		}
 		tmpl = tmp;
 		tmp = tmp->next;



More information about the asterisk-commits mailing list