From 14e8c4c5a3d5c4ded94a9391597f0889615e399b Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Tue, 14 Mar 2006 18:28:39 +0000 Subject: [PATCH] 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: https://origsvn.digium.com/svn/asterisk/branches/1.2@12925 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app_queue.c b/apps/app_queue.c index c5aff80d05..505ac2f855 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.