aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_queue.c
diff options
context:
space:
mode:
authormartinp <martinp@f38db490-d61c-443f-a65b-d21fe96a405b>2004-02-04 19:42:18 +0000
committermartinp <martinp@f38db490-d61c-443f-a65b-d21fe96a405b>2004-02-04 19:42:18 +0000
commit4b3d0271413c3021d7198101ab493a1be6104e29 (patch)
tree7517602480ad3c2b705c3ccfba4ad6d9a1806afb /apps/app_queue.c
parentd8b82b81ba27340146a291dbde1c64d7955ab136 (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/app_queue.c')
-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;