[svn-commits] mmichelson: branch 1.4 r81416 - /branches/1.4/apps/app_queue.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Aug 31 14:48:56 CDT 2007


Author: mmichelson
Date: Fri Aug 31 14:48:55 2007
New Revision: 81416

URL: http://svn.digium.com/view/asterisk?view=rev&rev=81416
Log:
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:
    branches/1.4/apps/app_queue.c

Modified: branches/1.4/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_queue.c?view=diff&rev=81416&r1=81415&r2=81416
==============================================================================
--- branches/1.4/apps/app_queue.c (original)
+++ branches/1.4/apps/app_queue.c Fri Aug 31 14:48:55 2007
@@ -3815,8 +3815,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 svn-commits mailing list