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:
parent
b805a45207
commit
36c60d02bb
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue