aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_readexten.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_readexten.c')
-rw-r--r--apps/app_readexten.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_readexten.c b/apps/app_readexten.c
index d5075ede8..e20dfff1d 100644
--- a/apps/app_readexten.c
+++ b/apps/app_readexten.c
@@ -220,7 +220,7 @@ static int readexten_exec(struct ast_channel *chan, void *data)
if (res < 1) { /* timeout expired or hangup */
if (ast_check_hangup(chan)) {
status = "HANGUP";
- } else {
+ } else if (x == 0) {
pbx_builtin_setvar_helper(chan, arglist.variable, "t");
status = "TIMEOUT";
}