[asterisk-commits] mmichelson: branch mmichelson/queue-penalty r94346 - /team/mmichelson/queue-p...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Dec 20 17:47:32 CST 2007
Author: mmichelson
Date: Thu Dec 20 17:47:31 2007
New Revision: 94346
URL: http://svn.digium.com/view/asterisk?view=rev&rev=94346
Log:
I need to pay attention to my own comments. :) No need to recursively lock
the rule_lists.
Modified:
team/mmichelson/queue-penalty/apps/app_queue.c
Modified: team/mmichelson/queue-penalty/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/team/mmichelson/queue-penalty/apps/app_queue.c?view=diff&rev=94346&r1=94345&r2=94346
==============================================================================
--- team/mmichelson/queue-penalty/apps/app_queue.c (original)
+++ team/mmichelson/queue-penalty/apps/app_queue.c Thu Dec 20 17:47:31 2007
@@ -1054,7 +1054,6 @@
rule->min_relative = 1;
/*We have the rule made, now we need to insert it where it belongs*/
- AST_LIST_LOCK(&rule_lists);
AST_LIST_TRAVERSE(&rule_lists, rl_iter, list){
if (strcasecmp(rl_iter->name, list_name))
continue;
@@ -1072,7 +1071,6 @@
AST_LIST_INSERT_TAIL(&rl_iter->rules, rule, list);
}
}
- AST_LIST_UNLOCK(&rule_lists);
return 0;
}
More information about the asterisk-commits
mailing list