[asterisk-commits] mmichelson: branch mmichelson/queue-penalty r93467 - /team/mmichelson/queue-p...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Dec 17 17:16:36 CST 2007
Author: mmichelson
Date: Mon Dec 17 17:16:36 2007
New Revision: 93467
URL: http://svn.digium.com/view/asterisk?view=rev&rev=93467
Log:
I added the unlock a bit too early. Thanks to outtolunc on IRC for pointing this out
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=93467&r1=93466&r2=93467
==============================================================================
--- team/mmichelson/queue-penalty/apps/app_queue.c (original)
+++ team/mmichelson/queue-penalty/apps/app_queue.c Mon Dec 17 17:16:36 2007
@@ -1037,11 +1037,11 @@
}
}
AST_LIST_TRAVERSE_SAFE_END;
- ao2_unlock(q);
if (!inserted) {
AST_LIST_INSERT_TAIL(&q->rules, pr, list);
}
+ ao2_unlock(q);
return 0;
}
@@ -4079,6 +4079,7 @@
}
/* Get the maximum penalty from the variable ${QUEUE_MAX_PENALTY} */
+
if ((max_penalty_str = pbx_builtin_getvar_helper(chan, "QUEUE_MAX_PENALTY"))) {
if (sscanf(max_penalty_str, "%d", &max_penalty) == 1) {
ast_debug(1, "%s: Got max penalty %d from ${QUEUE_MAX_PENALTY}.\n", chan->name, max_penalty);
More information about the asterisk-commits
mailing list