[asterisk-commits] mmichelson: trunk r81417 - in /trunk: ./ apps/app_queue.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Aug 31 14:50:27 CDT 2007
Author: mmichelson
Date: Fri Aug 31 14:50:26 2007
New Revision: 81417
URL: http://svn.digium.com/view/asterisk?view=rev&rev=81417
Log:
Merged revisions 81416 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r81416 | mmichelson | 2007-08-31 14:48:55 -0500 (Fri, 31 Aug 2007) | 6 lines
Fixed broken behavior of a reload on realtime queues. Prior to this patch, if a reload was issued and
a realtime queue had callers waiting in it, then the queue would be removed from the queue list, but it would
not actually be freed (in fact, a debug message warning about a memory leak would come up). With this patch,
reloads do not touch realtime queues at all.
........
Modified:
trunk/ (props changed)
trunk/apps/app_queue.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.
Modified: trunk/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_queue.c?view=diff&rev=81417&r1=81416&r2=81417
==============================================================================
--- trunk/apps/app_queue.c (original)
+++ trunk/apps/app_queue.c Fri Aug 31 14:50:26 2007
@@ -4003,8 +4003,10 @@
AST_LIST_LOCK(&queues);
use_weight=0;
/* Mark all queues as dead for the moment */
- AST_LIST_TRAVERSE(&queues, q, list)
- q->dead = 1;
+ AST_LIST_TRAVERSE(&queues, q, list) {
+ if(!q->realtime)
+ q->dead = 1;
+ }
/* Chug through config file */
cat = NULL;
More information about the asterisk-commits
mailing list