Fix a compile warning and a logic error that could have been bad
for non-realtime queues git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@164270 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
8a2cf30830
commit
00c40264b7
1 changed files with 2 additions and 2 deletions
|
@ -5721,7 +5721,7 @@ static char *__queues_show(struct mansession *s, int fd, int argc, char **argv)
|
||||||
ao2_lock(queues);
|
ao2_lock(queues);
|
||||||
while ((q = ao2_iterator_next(&queue_iter))) {
|
while ((q = ao2_iterator_next(&queue_iter))) {
|
||||||
float sl;
|
float sl;
|
||||||
struct call_queue *realtime_queue;
|
struct call_queue *realtime_queue = NULL;
|
||||||
|
|
||||||
ao2_lock(q);
|
ao2_lock(q);
|
||||||
/* This check is to make sure we don't print information for realtime
|
/* This check is to make sure we don't print information for realtime
|
||||||
|
@ -5732,7 +5732,7 @@ static char *__queues_show(struct mansession *s, int fd, int argc, char **argv)
|
||||||
ao2_unlock(q);
|
ao2_unlock(q);
|
||||||
queue_unref(q);
|
queue_unref(q);
|
||||||
continue;
|
continue;
|
||||||
} else {
|
} else if (q->realtime) {
|
||||||
queue_unref(realtime_queue);
|
queue_unref(realtime_queue);
|
||||||
}
|
}
|
||||||
if (argc == 3 && strcasecmp(q->name, argv[2])) {
|
if (argc == 3 && strcasecmp(q->name, argv[2])) {
|
||||||
|
|
Loading…
Reference in a new issue