aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_read.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-12-15 04:27:35 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-12-15 04:27:35 +0000
commitd2eb44eec2ff7aba9498d5292c4c22acffb973eb (patch)
treed7b44dd9032689416c4664758afd36682bab9c16 /apps/app_read.c
parentb9408b5da5ffd1fa30c21011f5e157f2c5d8a9da (diff)
Fix silly read problem which would hang up if nobody called (bug #3042)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4450 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_read.c')
-rwxr-xr-xapps/app_read.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/app_read.c b/apps/app_read.c
index 988ef8009..e91513845 100755
--- a/apps/app_read.c
+++ b/apps/app_read.c
@@ -106,8 +106,9 @@ static int read_exec(struct ast_channel *chan, void *data)
if (res > -1) {
pbx_builtin_setvar_helper(chan, varname, tmp);
ast_verbose(VERBOSE_PREFIX_3 "User entered '%s'\n", tmp);
+ res = 0;
} else {
- ast_verbose(VERBOSE_PREFIX_3 "User entered nothing\n");
+ ast_verbose(VERBOSE_PREFIX_3 "User disconnected\n");
}
}
LOCAL_USER_REMOVE(u);