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.