[asterisk-commits] mmichelson: branch 1.4 r112393 - /branches/1.4/apps/app_queue.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Apr 2 09:32:00 CDT 2008


Author: mmichelson
Date: Wed Apr  2 09:32:00 2008
New Revision: 112393

URL: http://svn.digium.com/view/asterisk?view=rev&rev=112393
Log:
Ensure that there is no timeout if none is specified.

(closes issue #12349)
Reported by: johnlange


Modified:
    branches/1.4/apps/app_queue.c

Modified: branches/1.4/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_queue.c?view=diff&rev=112393&r1=112392&r2=112393
==============================================================================
--- branches/1.4/apps/app_queue.c (original)
+++ branches/1.4/apps/app_queue.c Wed Apr  2 09:32:00 2008
@@ -3718,7 +3718,7 @@
 	qe.start = time(NULL);
 
 	/* set the expire time based on the supplied timeout; */
-	if (args.queuetimeoutstr)
+	if (!ast_strlen_zero(args.queuetimeoutstr))
 		qe.expire = qe.start + atoi(args.queuetimeoutstr);
 	else
 		qe.expire = 0;




More information about the asterisk-commits mailing list