提交 36c60d02 authored 作者: Anthony Minessale's avatar Anthony Minessale

prevent endless loop (just in case)

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13034 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 b805a452
...@@ -1259,6 +1259,9 @@ switch_status_t FSMediaStream::read_frame(switch_frame_t **frame, switch_io_flag ...@@ -1259,6 +1259,9 @@ switch_status_t FSMediaStream::read_frame(switch_frame_t **frame, switch_io_flag
*/ */
while(!GetPatch()) { while(!GetPatch()) {
if (!m_fsChannel || !switch_channel_up(m_fsChannel)) {
return SWITCH_STATUS_FALSE;
}
switch_cond_next(); switch_cond_next();
} }
if (CheckPatchAndLock()) { if (CheckPatchAndLock()) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论