summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main/app.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/app.c b/main/app.c
index dea5ee6ed..53987d8cd 100644
--- a/main/app.c
+++ b/main/app.c
@@ -1793,7 +1793,7 @@ static int __ast_play_and_record(struct ast_channel *chan, const char *playfile,
break;
}
if (!realfiles[x]) {
- ast_closestream(others[0]);
+ ast_closestream(others[x]);
continue;
}
/*!\note Same logic as above. */