projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a7374f
)
Fix the deadlock in show queue <queue_name>
author
Martin Pycko
<martinp@digium.com>
Wed, 4 Feb 2004 19:42:18 +0000
(19:42 +0000)
committer
Martin Pycko
<martinp@digium.com>
Wed, 4 Feb 2004 19:42:18 +0000
(19:42 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2126
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
apps/app_queue.c
patch
|
blob
|
history
diff --git
a/apps/app_queue.c
b/apps/app_queue.c
index
dc1710f
..
e5e4841
100755
(executable)
--- 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;