From 9ab5e1222c505d521f425144ff29f9006a033e0e Mon Sep 17 00:00:00 2001
From: Rye Mutt <rye@alchemyviewer.org>
Date: Sat, 21 Mar 2020 13:03:34 -0400
Subject: [PATCH] Fix spamming server for voice credentials when parcel voice
 is disabled

---
 indra/newview/llvoicevivox.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/indra/newview/llvoicevivox.cpp b/indra/newview/llvoicevivox.cpp
index d3bf29b3b87..3b9fce9d122 100644
--- a/indra/newview/llvoicevivox.cpp
+++ b/indra/newview/llvoicevivox.cpp
@@ -1729,7 +1729,7 @@ bool LLVivoxVoiceClient::waitForChannel()
             {
                 recordingAndPlaybackMode();
             }
-            else if (checkParcelChanged() || (mNextAudioSession == NULL))
+            else if (checkParcelChanged() || (!mAreaVoiceDisabled && mNextAudioSession == nullptr))
             {
                 // the parcel is changed, or we have no pending audio sessions,
                 // so try to request the parcel voice info
-- 
GitLab