From cc257cd6d07d0ffdff838269bcc93f0ce01d851c Mon Sep 17 00:00:00 2001 From: bweschke Date: Mon, 8 May 2006 13:35:17 +0000 Subject: Make QueueStatusComplete event thread safe by wrapping it inside the queue lock clause already there. #7013 (bziherl reporting) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@25522 f38db490-d61c-443f-a65b-d21fe96a405b --- apps/app_queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps') diff --git a/apps/app_queue.c b/apps/app_queue.c index dda70b492..a35a3ee19 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -3525,13 +3525,13 @@ static int manager_queues_status( struct mansession *s, struct message *m ) } ast_mutex_unlock(&q->lock); } - ast_mutex_unlock(&qlock); ast_cli(s->fd, "Event: QueueStatusComplete\r\n" "%s" "\r\n",idText); + ast_mutex_unlock(&qlock); return RESULT_SUCCESS; } -- cgit v1.2.3