mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Ensure that there is no timeout if none is specified.
(closes issue #12349) Reported by: johnlange git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@112393 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3718,7 +3718,7 @@ static int queue_exec(struct ast_channel *chan, void *data)
|
|||||||
qe.start = time(NULL);
|
qe.start = time(NULL);
|
||||||
|
|
||||||
/* set the expire time based on the supplied timeout; */
|
/* 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);
|
qe.expire = qe.start + atoi(args.queuetimeoutstr);
|
||||||
else
|
else
|
||||||
qe.expire = 0;
|
qe.expire = 0;
|
||||||
|
Reference in New Issue
Block a user