diff options
author | bweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-08 13:35:17 +0000 |
---|---|---|
committer | bweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-08 13:35:17 +0000 |
commit | cc257cd6d07d0ffdff838269bcc93f0ce01d851c (patch) | |
tree | e2a2c7949073b22976ac6c17f1c0dc650bd3b922 /apps/app_queue.c | |
parent | 9a4ce59bcc7c3c4cf998f7c62e1dcf26947b1189 (diff) |
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
Diffstat (limited to 'apps/app_queue.c')
-rw-r--r-- | apps/app_queue.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |