--- asterisk_digium_1.2/apps/app_queue.c 2006-03-08 11:46:38.000000000 -0600 +++ asterisk_nuvio_trunk/apps/app_queue.c 2006-03-08 11:48:18.000000000 -0600 @@ -941,7 +941,7 @@ } ast_mutex_unlock(&qlock); - if (!q) { + if (!q || q->realtime == 1) { /*! \note Load from realtime before taking the global qlock, to avoid blocking all queue operations while waiting for the DB.