Fix crash caused by merge error on review 4138

When merging from 12 to 13 there were conflicts,
I mistakenly had the loop run ast_closestream(others[0])
when it should be ast_closestream(others[x]).
........

Merged revisions 427181 from http://svn.asterisk.org/svn/asterisk/branches/13


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@427182 65c4cc65-6c06-0410-ace0-fbb531ad65f3
changes/42/42/1
Corey Farrell 11 years ago
parent d159885e50
commit bdc35c77b9

@ -1793,7 +1793,7 @@ static int __ast_play_and_record(struct ast_channel *chan, const char *playfile,
break; break;
} }
if (!realfiles[x]) { if (!realfiles[x]) {
ast_closestream(others[0]); ast_closestream(others[x]);
continue; continue;
} }
/*!\note Same logic as above. */ /*!\note Same logic as above. */

Loading…
Cancel
Save