Skip to content
Snippets Groups Projects
Commit 1e4b3343 authored by Martin Pycko's avatar Martin Pycko
Browse files

Fix the deadlock in show queue <queue_name>

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2126 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 9a7374fa
No related branches found
No related tags found
No related merge requests found
...@@ -1370,8 +1370,8 @@ static int __queues_show(int fd, int argc, char **argv, int queue_show) ...@@ -1370,8 +1370,8 @@ static int __queues_show(int fd, int argc, char **argv, int queue_show)
ast_mutex_lock(&q->lock); ast_mutex_lock(&q->lock);
if (queue_show) { if (queue_show) {
if (strcasecmp(q->name, argv[2]) != 0) { if (strcasecmp(q->name, argv[2]) != 0) {
q = q->next;
ast_mutex_unlock(&q->lock); ast_mutex_unlock(&q->lock);
q = q->next;
if (!q) { if (!q) {
ast_cli(fd, "No such queue: %s.\n",argv[2]); ast_cli(fd, "No such queue: %s.\n",argv[2]);
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment