[Asterisk-cvs] asterisk/apps app_queue.c,1.123,1.124

markster at lists.digium.com markster at lists.digium.com
Sun Feb 20 13:03:40 CST 2005


Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv26466/apps

Modified Files:
	app_queue.c 
Log Message:
Allow 0 retry time (bug #3630)


Index: app_queue.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_queue.c,v
retrieving revision 1.123
retrieving revision 1.124
diff -u -d -r1.123 -r1.124
--- app_queue.c	13 Feb 2005 16:53:29 -0000	1.123
+++ app_queue.c	20 Feb 2005 19:02:20 -0000	1.124
@@ -2484,7 +2484,7 @@
 					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 @@
 					}
 					var = var->next;
 				}
-				if (q->retry < 1)
+				if (q->retry < 0)
 					q->retry = DEFAULT_RETRY;
 				if (q->timeout < 0)
 					q->timeout = DEFAULT_TIMEOUT;




More information about the svn-commits mailing list