Make QueueStatusComplete event thread safe by wrapping it inside the queue lock clause already there. #7013 (bziherl reporting)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@25522 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
BJ Weschke
2006-05-08 13:35:17 +00:00
parent d46fa7e825
commit 249760b951

View File

@@ -3525,13 +3525,13 @@ static int manager_queues_status( struct mansession *s, struct message *m )
} }
ast_mutex_unlock(&q->lock); ast_mutex_unlock(&q->lock);
} }
ast_mutex_unlock(&qlock);
ast_cli(s->fd, ast_cli(s->fd,
"Event: QueueStatusComplete\r\n" "Event: QueueStatusComplete\r\n"
"%s" "%s"
"\r\n",idText); "\r\n",idText);
ast_mutex_unlock(&qlock);
return RESULT_SUCCESS; return RESULT_SUCCESS;
} }