diff options
author | Mark Michelson <mmichelson@digium.com> | 2008-04-02 14:32:43 +0000 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2008-04-02 14:32:43 +0000 |
commit | b95d24ea4755a1de2aebf7247d7185b3d6da96b7 (patch) | |
tree | df84000d8d65378c1f41c97f9300227d9f48ac97 /apps/app_queue.c | |
parent | 6699761f8043b5c8bcf244bb3cab58c5247eafd7 (diff) |
Merged revisions 112393 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r112393 | mmichelson | 2008-04-02 09:32:00 -0500 (Wed, 02 Apr 2008) | 6 lines
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/trunk@112394 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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 3fd69c775..07d54cfc8 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -4393,7 +4393,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; |