From: Mark Spencer Date: Sun, 20 Feb 2005 19:02:20 +0000 (+0000) Subject: Allow 0 retry time (bug #3630) X-Git-Tag: 1.2.0-beta1~1180 X-Git-Url: http://git.asterisk.org/gitweb/?p=asterisk%2Fasterisk.git;a=commitdiff_plain;h=fccd0750b2479273a2f769680e5890cfdbf06a5e;hp=d10878282b5c32740a2c3bd50a529f70da545a16 Allow 0 retry time (bug #3630) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5058 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_queue.c b/apps/app_queue.c index d758484..deb3bca 100755 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -2484,7 +2484,7 @@ static void reload_queues(void) ast_mutex_lock(&q->lock); /* Re-initialize the queue */ ast_clear_flag(q, QUEUE_FLAG_DEAD); - q->retry = 0; + q->retry = DEFAULT_RETRY; q->timeout = -1; q->maxlen = 0; q->announcefrequency = 0; @@ -2612,7 +2612,7 @@ static void reload_queues(void) } var = var->next; } - if (q->retry < 1) + if (q->retry < 0) q->retry = DEFAULT_RETRY; if (q->timeout < 0) q->timeout = DEFAULT_TIMEOUT;