aboutsummaryrefslogtreecommitdiffstats
path: root/app.c
diff options
context:
space:
mode:
Diffstat (limited to 'app.c')
-rwxr-xr-xapp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/app.c b/app.c
index c3686f12f..2f3ac6cd7 100755
--- a/app.c
+++ b/app.c
@@ -459,7 +459,9 @@ int ast_control_streamfile(struct ast_channel *chan, char *file, char *fwd, char
if (chan)
ast_stopstream(chan);
res = ast_waitfordigit(chan, 1000);
- if (res == -1 || strchr(pause, res) || (stop && strchr(stop, res)))
+ if(res == 0)
+ continue;
+ else if(res == -1 || strchr(pause, res) || (stop && strchr(stop, res)))
break;
}
if (res == *pause) {
@@ -470,7 +472,7 @@ int ast_control_streamfile(struct ast_channel *chan, char *file, char *fwd, char
if (res == -1)
break;
- if (stop != NULL && res == *stop) {
+ if (stop && strchr(stop, res)) {
res = 0;
break;
}