From 9a95e69bfc8a75b72d2e13d2d091297230d101ba Mon Sep 17 00:00:00 2001 From: Ansariel Hiller Date: Mon, 23 Sep 2024 23:03:30 +0200 Subject: Restore WebRTC shutdown fix (#2658) --- indra/newview/llvoicewebrtc.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/indra/newview/llvoicewebrtc.cpp b/indra/newview/llvoicewebrtc.cpp index 32803c6117..7161f5af5e 100644 --- a/indra/newview/llvoicewebrtc.cpp +++ b/indra/newview/llvoicewebrtc.cpp @@ -2769,17 +2769,6 @@ bool LLVoiceWebRTCConnection::connectionStateMachine() { mRetryWaitPeriod = 0; mRetryWaitSecs = (F32)((F32)rand() / (F32)RAND_MAX) + 0.5f; - LLUUID agentRegionID; - if (isSpatial() && gAgent.getRegion()) - { - - bool primary = (mRegionID == gAgent.getRegion()->getRegionID()); - if (primary != mPrimary) - { - mPrimary = primary; - sendJoin(); - } - } // we'll stay here as long as the session remains up. if (mShutDown) -- cgit v1.2.3