summaryrefslogtreecommitdiff
path: root/indra/newview/llvoicewebrtc.h
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llvoicewebrtc.h')
-rw-r--r--indra/newview/llvoicewebrtc.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/newview/llvoicewebrtc.h b/indra/newview/llvoicewebrtc.h
index 061e00581e..f4e2ac0b7f 100644
--- a/indra/newview/llvoicewebrtc.h
+++ b/indra/newview/llvoicewebrtc.h
@@ -655,10 +655,13 @@ private:
int mVoiceControlState;
LLMutex mVoiceStateMutex;
- void setVoiceControlState(int new_voice_control_state)
+ void setVoiceControlStateUnless(int new_voice_control_state, int unless=-1)
{
LLMutexLock lock(&mVoiceStateMutex);
- mVoiceControlState = new_voice_control_state;
+ if (mVoiceControlState != unless)
+ {
+ mVoiceControlState = new_voice_control_state;
+ }
}
int getVoiceControlState()
{