mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 14:58:25 +00:00
Remove needless check for autofill (issue #7180 reported by Marquis)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@27975 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1895,11 +1895,10 @@ static int is_our_turn(struct queue_ent *qe)
|
|||||||
int res;
|
int res;
|
||||||
|
|
||||||
if (!qe->parent->autofill) {
|
if (!qe->parent->autofill) {
|
||||||
|
|
||||||
/* Atomically read the parent head -- does not need a lock */
|
/* Atomically read the parent head -- does not need a lock */
|
||||||
ch = qe->parent->head;
|
ch = qe->parent->head;
|
||||||
/* If we are now at the top of the head, break out */
|
/* If we are now at the top of the head, break out */
|
||||||
if ((ch == qe) || (qe->parent->autofill)) {
|
if (ch == qe) {
|
||||||
if (option_debug)
|
if (option_debug)
|
||||||
ast_log(LOG_DEBUG, "It's our turn (%s).\n", qe->chan->name);
|
ast_log(LOG_DEBUG, "It's our turn (%s).\n", qe->chan->name);
|
||||||
res = 1;
|
res = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user