summaryrefslogtreecommitdiff
path: root/indra/llwebrtc/llwebrtc.cpp
diff options
context:
space:
mode:
authorRoxie Linden <roxie@lindenlab.com>2023-09-13 21:45:42 -0700
committerRoxie Linden <roxie@lindenlab.com>2024-02-08 18:34:01 -0800
commite554bf05293e34a5b8af7933127dff76c537f275 (patch)
treed84ca89f46b853428df1145583b39c3df0d14549 /indra/llwebrtc/llwebrtc.cpp
parent24379eb3eec285bf53692892d07a36aac0bad95c (diff)
Fix connection failed logic to do a renegotiate.
Also, remove some dead code.
Diffstat (limited to 'indra/llwebrtc/llwebrtc.cpp')
-rw-r--r--indra/llwebrtc/llwebrtc.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/indra/llwebrtc/llwebrtc.cpp b/indra/llwebrtc/llwebrtc.cpp
index 93e9db9c1d..862325c3f1 100644
--- a/indra/llwebrtc/llwebrtc.cpp
+++ b/indra/llwebrtc/llwebrtc.cpp
@@ -425,15 +425,13 @@ void LLWebRTCImpl::OnConnectionChange(webrtc::PeerConnectionInterface::PeerConne
}
break;
}
- case webrtc::PeerConnectionInterface::PeerConnectionState::kDisconnected:
+ case webrtc::PeerConnectionInterface::PeerConnectionState::kFailed:
{
- if (new_state == webrtc::PeerConnectionInterface::PeerConnectionState::kConnected)
+ for (auto &observer : mSignalingObserverList)
{
- for (auto &observer : mSignalingObserverList)
- {
- observer->OnRenegotiationNeeded();
- }
+ observer->OnRenegotiationNeeded();
}
+
break;
}
default: