aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-12 14:29:15 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-12 14:29:15 +0000
commit489726c64a733daf4be4a6515b5ad14be3ed6b36 (patch)
tree65599e4c1132ba745bf01186be86c1d3edfe35ed /apps
parentc9e921b7e98ffce1cfd11d307879cf9f2de99f12 (diff)
Merged revisions 82274 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r82274 | mmichelson | 2007-09-12 09:24:53 -0500 (Wed, 12 Sep 2007) | 6 lines We should only initialize a realtime queue when it is allocated, not every time we access it. This prevents the members ao2_container from being reallocated every time the queue is accessed. I also removed a debug message I had accidentally left in on a previous commit. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@82275 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_queue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index dd2eb7f9a..cb5b9b106 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -1206,9 +1206,9 @@ static struct call_queue *find_queue_by_name_rt(const char *queuename, struct as
ast_mutex_lock(&q->lock);
clear_queue(q);
q->realtime = 1;
+ init_queue(q); /* Ensure defaults for all parameters not set explicitly. */
AST_LIST_INSERT_HEAD(&queues, q, list);
}
- init_queue(q); /* Ensure defaults for all parameters not set explicitly. */
memset(tmpbuf, 0, sizeof(tmpbuf));
for (v = queue_vars; v; v = v->next) {