diff options
| author | Roxie Linden <roxie@lindenlab.com> | 2024-03-16 15:17:35 -0700 | 
|---|---|---|
| committer | Roxie Linden <roxie@lindenlab.com> | 2024-03-16 15:17:35 -0700 | 
| commit | 8530eadd982d71a495fa3898e8fc136b230143ba (patch) | |
| tree | 9caf75acd57e992f156ed84425320a0389ed54ae | |
| parent | dbbbbc55af5c1b5e81e7a493a9b5fe5718f15c07 (diff) | |
Fix crash in setting peer volume/mute
Also fix issue where moving to a 'voice disabled' parcel and back
to the region (with voice) resulted in the voice dot not showing up.
| -rw-r--r-- | indra/newview/llvoicewebrtc.cpp | 12 | 
1 files changed, 9 insertions, 3 deletions
| diff --git a/indra/newview/llvoicewebrtc.cpp b/indra/newview/llvoicewebrtc.cpp index 7be02c1e21..cae7154bc2 100644 --- a/indra/newview/llvoicewebrtc.cpp +++ b/indra/newview/llvoicewebrtc.cpp @@ -465,7 +465,7 @@ void LLWebRTCVoiceClient::voiceConnectionCoro()                              }                          }                      } -                    if (useEstateVoice && !inEstateChannel()) +                    if (voiceEnabled && useEstateVoice && !inEstateChannel())                      {                          // estate voice                          startEstateSession(); @@ -2251,7 +2251,10 @@ void LLVoiceWebRTCConnection::setUserVolume(const LLUUID& id, F32 volume)      root["ug"] = user_gain;      Json::FastWriter writer;      std::string json_data = writer.write(root); -    mWebRTCDataInterface->sendData(json_data, false); +    if (mWebRTCDataInterface) +    { +        mWebRTCDataInterface->sendData(json_data, false); +    }  }  void LLVoiceWebRTCConnection::setUserMute(const LLUUID& id, bool mute) @@ -2262,7 +2265,10 @@ void LLVoiceWebRTCConnection::setUserMute(const LLUUID& id, bool mute)      root["m"] = muted;      Json::FastWriter writer;      std::string json_data = writer.write(root); -    mWebRTCDataInterface->sendData(json_data, false); +    if (mWebRTCDataInterface) +    { +        mWebRTCDataInterface->sendData(json_data, false); +    }  } | 
