diff options
author | Mark Spencer <markster@digium.com> | 2004-12-15 04:27:35 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2004-12-15 04:27:35 +0000 |
commit | 706bb6f067342c5821cbb0f4ddfddc541b50da8b (patch) | |
tree | d7b44dd9032689416c4664758afd36682bab9c16 /apps/app_read.c | |
parent | dc636198eca26f8eb022e369110160e432a1fd2e (diff) |
Fix silly read problem which would hang up if nobody called (bug #3042)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4450 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_read.c')
-rwxr-xr-x | apps/app_read.c | 3 |
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); |