summaryrefslogtreecommitdiff
path: root/indra/llwebrtc
diff options
context:
space:
mode:
authorRoxie Linden <roxie@lindenlab.com>2024-03-19 17:05:56 -0700
committerRoxie Linden <roxie@lindenlab.com>2024-03-19 17:05:56 -0700
commit0e2fc4d35ea1fdef0028a5132602985da2e1c463 (patch)
treea1e0973bb30f86a528d0ac07f14b0f10f899a462 /indra/llwebrtc
parent5bc92b8031e9a6258bab8b24d42090a495cec6e5 (diff)
Clear out observers when terminating a connection
Diffstat (limited to 'indra/llwebrtc')
-rw-r--r--indra/llwebrtc/llwebrtc.cpp8
1 files changed, 0 insertions, 8 deletions
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;