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:
3d412a7
)
Committing a fix pointed out by Atis Lezdins on the asterisk-dev list. Thanks!
author
Mark Michelson
<mmichelson@digium.com>
Thu, 22 May 2008 16:05:18 +0000
(16:05 +0000)
committer
Mark Michelson
<mmichelson@digium.com>
Thu, 22 May 2008 16:05:18 +0000
(16:05 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@117794
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
4a49932
..
904aebd
100644
(file)
--- a/
apps/app_queue.c
+++ b/
apps/app_queue.c
@@
-3943,12
+3943,15
@@
static int set_member_paused(const char *queuename, const char *interface, const
ao2_ref(mem, -1);
}
}
- ao2_unlock(q);
- queue_unref(q);
- if (!ast_strlen_zero(queuename) && found) {
+ if (!ast_strlen_zero(queuename) && !strcasecmp(queuename, q->name)) {
+ ao2_unlock(q);
+ queue_unref(q);
break;
}
+
+ ao2_unlock(q);
+ queue_unref(q);
}
return found ? RESULT_SUCCESS : RESULT_FAILURE;