summaryrefslogtreecommitdiff
path: root/apps/app_queue.c
diff options
context:
space:
mode:
authorBJ Weschke <bweschke@btwtech.com>2006-05-08 13:38:14 +0000
committerBJ Weschke <bweschke@btwtech.com>2006-05-08 13:38:14 +0000
commitc0186f6b4de4ec021a47df08d7ae291cae00c01f (patch)
treed78c65f8d88cd46671a5f5a62a6daf05f53dbea4 /apps/app_queue.c
parenta7f330a2d26dc40de2a2f2a0762a08b5809e29af (diff)
Make QueueStatusComplete manager event thread safe by wrapping it inside the already existing Queue Lock clause. #7013 (bziherl reporting)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@25523 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_queue.c')
-rw-r--r--apps/app_queue.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index bbf0a2c99..d1ed8d83d 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -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;
}