Reconnects to the voice server weren't happening.

master
Roxie Linden 2024-04-28 17:43:15 -07:00
parent 62cd262cca
commit d4fce4990a
3 changed files with 9 additions and 5 deletions

View File

@ -652,6 +652,13 @@ LLWebRTCPeerConnectionImpl::LLWebRTCPeerConnectionImpl() :
{
}
LLWebRTCPeerConnectionImpl::~LLWebRTCPeerConnectionImpl()
{
terminate();
mSignalingObserverList.clear();
mDataObserverList.clear();
}
//
// LLWebRTCPeerConnection interface
//
@ -670,9 +677,6 @@ void LLWebRTCPeerConnectionImpl::terminate()
rtc::scoped_refptr<webrtc::MediaStreamInterface> localStream;
mLocalStream.swap(localStream);
mSignalingObserverList.clear();
mDataObserverList.clear();
mWebRTCImpl->PostSignalingTask(
[=]()
{

View File

@ -276,7 +276,7 @@ class LLWebRTCPeerConnectionImpl : public LLWebRTCPeerConnectionInterface,
{
public:
LLWebRTCPeerConnectionImpl();
~LLWebRTCPeerConnectionImpl() {}
~LLWebRTCPeerConnectionImpl();
void init(LLWebRTCImpl * webrtc_impl);
void terminate();

View File

@ -87,7 +87,7 @@ namespace {
const F32 VOLUME_SCALE_WEBRTC = 0.01f;
const F32 LEVEL_SCALE_WEBRTC = 0.008f;
const F32 SPEAKING_AUDIO_LEVEL = 0.40;
const F32 SPEAKING_AUDIO_LEVEL = 0.35;
static const std::string REPORTED_VOICE_SERVER_TYPE = "Secondlife WebRTC Gateway";