summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorCosmic Linden <cosmic@lindenlab.com>2026-05-14 15:46:20 -0700
committerCosmic Linden <cosmic@lindenlab.com>2026-05-14 15:46:20 -0700
commit01f4b1817d07b5edb850cc7ca1f6cf14e2406c7e (patch)
treef189cf872fd0ed894fe63233c01b3fa95f6de8dd /indra
parent878e1f682f899f7a08daf3d934c5df11f0ad5739 (diff)
Fix display of ad-hoc session type in About and display p2p instead as appropriate
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llvoicewebrtc.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/indra/newview/llvoicewebrtc.cpp b/indra/newview/llvoicewebrtc.cpp
index 333046adce..6d5a8eae6a 100644
--- a/indra/newview/llvoicewebrtc.cpp
+++ b/indra/newview/llvoicewebrtc.cpp
@@ -353,9 +353,16 @@ void LLWebRTCVoiceClient::updateVersion()
{
// A WebRTC session can be connected to multiple servers at once. To more easily disambiguate which server version is being printed, show the connection type. In most cases, this shouldn't matter and the Janus version should be the same for all connections. Janus versions are also logged for each connection.
mVoiceVersion.serverVersion = session->getVersion();
- if (session->isCallbackPossible())
+ if (dynamic_cast<adhocSessionState*>(session.get()))
{
- mVoiceVersion.mBuildVersion = "ad-hoc";
+ if (session->mHangupOnLastLeave)
+ {
+ mVoiceVersion.mBuildVersion = "p2p";
+ }
+ else
+ {
+ mVoiceVersion.mBuildVersion = "ad-hoc";
+ }
}
else if (session->isEstate())
{