aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/app_queue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 320f51318..1c637574a 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -4384,7 +4384,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;