Make QueueStatusComplete manager event thread safe by wrapping it inside the already...
authorBJ Weschke <bweschke@btwtech.com>
Mon, 8 May 2006 13:38:14 +0000 (13:38 +0000)
committerBJ Weschke <bweschke@btwtech.com>
Mon, 8 May 2006 13:38:14 +0000 (13:38 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@25523 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c

index bbf0a2c..d1ed8d8 100644 (file)
@@ -3828,13 +3828,14 @@ static int manager_queues_status( struct mansession *s, struct message *m )
                }
                ast_mutex_unlock(&q->lock);
        }
-       AST_LIST_UNLOCK(&queues);
 
        astman_append(s,
                "Event: QueueStatusComplete\r\n"
                "%s"
                "\r\n",idText);
 
+       AST_LIST_UNLOCK(&queues);
+
 
        return RESULT_SUCCESS;
 }