diff options
author | bweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-08 13:38:14 +0000 |
---|---|---|
committer | bweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-08 13:38:14 +0000 |
commit | 77999f4d25e38e57d3d3a386ff43c22874e0a6f4 (patch) | |
tree | d78c65f8d88cd46671a5f5a62a6daf05f53dbea4 /apps | |
parent | 2b2565f7ae91f4efef6887b7f5942445cc176ea8 (diff) |
Make QueueStatusComplete manager event thread safe by wrapping it inside the already existing Queue Lock clause. #7013 (bziherl reporting)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25523 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_queue.c | 3 |
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; } |