aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-03-14 18:28:39 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-03-14 18:28:39 +0000
commitc18b08d840bd95c9acf95ceb1d27d525d60f5da9 (patch)
tree4e660bbff5f293c754d056353e479cd2d27da556
parent7aa4df8ceeac68b619fab1419668febc88931fc9 (diff)
fix a problem with not loading realtime queue members by always reloading a
realtime queue from the database even if it is found in the list (issue #6680) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@12925 f38db490-d61c-443f-a65b-d21fe96a405b
-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 c5aff80d0..505ac2f85 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -941,7 +941,7 @@ static struct ast_call_queue *load_realtime_queue(char *queuename)
}
ast_mutex_unlock(&qlock);
- if (!q) {
+ if (!q || q->realtime) {
/*! \note Load from realtime before taking the global qlock, to avoid blocking all
queue operations while waiting for the DB.