Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion indra/llwebrtc/llwebrtc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1113,7 +1113,20 @@ void LLWebRTCPeerConnectionImpl::closeOnSignalingThread()

// NOTE: Close() delivers any pending GetStats report inline, before it
// returns, so the observer list below must still be valid here.
mPeerConnection->Close();
try
{
mPeerConnection->Close();
}
catch (const std::out_of_range& e)
{
RTC_LOG(LS_WARNING) << __FUNCTION__
<< ": std::out_of_range in PeerConnection::Close()";
}
catch (const std::exception& e)
{
RTC_LOG(LS_WARNING) << __FUNCTION__
<< ": exception in PeerConnection::Close(): " << e.what();
}
if (mLocalStream)
{
auto tracks = mLocalStream->GetAudioTracks();
Expand Down
Loading