prevent endless loop (just in case)

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13034 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2009-04-15 16:45:40 +00:00
parent b805a45207
commit 36c60d02bb
1 changed files with 3 additions and 0 deletions

View File

@ -1259,6 +1259,9 @@ switch_status_t FSMediaStream::read_frame(switch_frame_t **frame, switch_io_flag
*/
while(!GetPatch()) {
if (!m_fsChannel || !switch_channel_up(m_fsChannel)) {
return SWITCH_STATUS_FALSE;
}
switch_cond_next();
}
if (CheckPatchAndLock()) {