diff options
author | martinp <martinp@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-02-04 19:42:18 +0000 |
---|---|---|
committer | martinp <martinp@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-02-04 19:42:18 +0000 |
commit | 4b3d0271413c3021d7198101ab493a1be6104e29 (patch) | |
tree | 7517602480ad3c2b705c3ccfba4ad6d9a1806afb /apps | |
parent | d8b82b81ba27340146a291dbde1c64d7955ab136 (diff) |
Fix the deadlock in show queue <queue_name>
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2126 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rwxr-xr-x | 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 dc1710fee..e5e484149 100755 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -1370,8 +1370,8 @@ static int __queues_show(int fd, int argc, char **argv, int queue_show) ast_mutex_lock(&q->lock); if (queue_show) { if (strcasecmp(q->name, argv[2]) != 0) { - q = q->next; ast_mutex_unlock(&q->lock); + q = q->next; if (!q) { ast_cli(fd, "No such queue: %s.\n",argv[2]); break; |