From 0e2fc4d35ea1fdef0028a5132602985da2e1c463 Mon Sep 17 00:00:00 2001 From: Roxie Linden Date: Tue, 19 Mar 2024 17:05:56 -0700 Subject: Clear out observers when terminating a connection --- indra/llwebrtc/llwebrtc.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'indra') diff --git a/indra/llwebrtc/llwebrtc.cpp b/indra/llwebrtc/llwebrtc.cpp index 283b94dd3c..34d950b804 100644 --- a/indra/llwebrtc/llwebrtc.cpp +++ b/indra/llwebrtc/llwebrtc.cpp @@ -1135,14 +1135,6 @@ void LLWebRTCPeerConnectionImpl::OnStateChange() break; case webrtc::DataChannelInterface::kClosed: RTC_LOG(LS_INFO) << __FUNCTION__ << " Data Channel State closed"; - // if the data channel is up, we need to shut it down, holding off - // on termination of the peer connection until it's been closed. - if (mClosing) - { - // a close was requested, and the data channel has closed, - // so go ahead and call shutdownConnection again to clean up. - shutdownConnection(); - } break; default: break; -- cgit v1.2.3