diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-02 14:32:00 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-02 14:32:00 +0000 |
commit | bb54d7a0ad0e11bc6c763bf220585b387ee29bdb (patch) | |
tree | 4c917c4c9fa623b4696b5762b5cc0668ec4053c3 /apps/app_queue.c | |
parent | fae1cb67ba28920c559deeec4c203459ebd97cb5 (diff) |
Ensure that there is no timeout if none is specified.
(closes issue #12349)
Reported by: johnlange
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@112393 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_queue.c')
-rw-r--r-- | apps/app_queue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index 53f3c31a0..36ba8e213 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -3718,7 +3718,7 @@ static int queue_exec(struct ast_channel *chan, void *data) 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; |