Use the default timeout for a queue instead of -1
authorMark Michelson <mmichelson@digium.com>
Tue, 20 Jan 2009 21:57:24 +0000 (21:57 +0000)
committerMark Michelson <mmichelson@digium.com>
Tue, 20 Jan 2009 21:57:24 +0000 (21:57 +0000)
(closes issue #14272)
Reported by: timking

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@169574 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c

index ada7da8..444f0fc 100644 (file)
@@ -1146,7 +1146,7 @@ static void init_queue(struct call_queue *q)
 
        q->dead = 0;
        q->retry = DEFAULT_RETRY;
-       q->timeout = -1;
+       q->timeout = DEFAULT_TIMEOUT;
        q->maxlen = 0;
        q->announcefrequency = 0;
        q->minannouncefrequency = DEFAULT_MIN_ANNOUNCE_FREQUENCY;