summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorMartin Pycko <martinp@digium.com>2004-02-04 19:42:18 +0000
committerMartin Pycko <martinp@digium.com>2004-02-04 19:42:18 +0000
commit1e4b3343210226ee4cc1c7ed1eb6a2d451763ac9 (patch)
tree7517602480ad3c2b705c3ccfba4ad6d9a1806afb /apps
parent9a7374faf058cc4cc5ff97c720792d1a03e85ef7 (diff)
Fix the deadlock in show queue <queue_name>
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2126 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rwxr-xr-xapps/app_queue.c2
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;