提交 062ddcfa authored 作者: Michael Jerris's avatar Michael Jerris

FS-7174: #resolve #comment make sure not to leave any sessions readlocked in…

FS-7174: #resolve #comment make sure not to leave any sessions readlocked in bridge_early_media=true in case one in the middle of the list is abandoned
上级 f770b318
...@@ -1753,11 +1753,7 @@ static void *SWITCH_THREAD_FUNC early_thread_run(switch_thread_t *thread, void * ...@@ -1753,11 +1753,7 @@ static void *SWITCH_THREAD_FUNC early_thread_run(switch_thread_t *thread, void *
switch_core_session_t *session = originate_status[i].peer_session; switch_core_session_t *session = originate_status[i].peer_session;
switch_channel_t *channel = originate_status[i].peer_channel; switch_channel_t *channel = originate_status[i].peer_channel;
if (!session) { if (!session || !channel || !switch_channel_up(channel)) {
break;
}
if (!channel || !switch_channel_up(channel)) {
continue; continue;
} }
...@@ -1836,7 +1832,7 @@ static void *SWITCH_THREAD_FUNC early_thread_run(switch_thread_t *thread, void * ...@@ -1836,7 +1832,7 @@ static void *SWITCH_THREAD_FUNC early_thread_run(switch_thread_t *thread, void *
switch_core_session_t *session = originate_status[i].peer_session; switch_core_session_t *session = originate_status[i].peer_session;
switch_channel_t *channel = originate_status[i].peer_channel; switch_channel_t *channel = originate_status[i].peer_channel;
if (!session) break; if (!session) continue;
if (switch_core_codec_ready((&read_codecs[i]))) { if (switch_core_codec_ready((&read_codecs[i]))) {
switch_core_codec_destroy(&read_codecs[i]); switch_core_codec_destroy(&read_codecs[i]);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论