[asterisk-commits] dhubbard: branch group/taskprocessors r111960 - /team/group/taskprocessors/main/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sun Mar 30 21:48:12 CDT 2008


Author: dhubbard
Date: Sun Mar 30 21:48:12 2008
New Revision: 111960

URL: http://svn.digium.com/view/asterisk?view=rev&rev=111960
Log:
unlock the list before returning tab completion stuff...thanks josh

Modified:
    team/group/taskprocessors/main/taskprocessor.c

Modified: team/group/taskprocessors/main/taskprocessor.c
URL: http://svn.digium.com/view/asterisk/team/group/taskprocessors/main/taskprocessor.c?view=diff&rev=111960&r1=111959&r2=111960
==============================================================================
--- team/group/taskprocessors/main/taskprocessor.c (original)
+++ team/group/taskprocessors/main/taskprocessor.c Sun Mar 30 21:48:12 2008
@@ -104,6 +104,7 @@
 {
 	int tklen;
 	int wordnum = 0;
+	char *name;
 
 	if(a->pos != 2)
 		return NULL;
@@ -112,7 +113,9 @@
 	AST_LIST_LOCK(&_taskprocessor_singletons);
 	AST_LIST_TRAVERSE(&_taskprocessor_singletons, p, list) {
 		if (!strncasecmp(a->word, p->_name, tklen) && ++wordnum > a->n) {
-			return ast_strdup(p->_name);
+			name = ast_strdup(p->_name);
+			AST_LIST_UNLOCK(&_taskprocessor_singletons);
+			return name;
 		break;
 		}
 	}




More information about the asterisk-commits mailing list