summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorMnikolenko ProductEngine <mnikolenko@productengine.com>2017-08-03 16:30:01 +0300
committerMnikolenko ProductEngine <mnikolenko@productengine.com>2017-08-03 16:30:01 +0300
commit5250a86e7b35ca0710b1ae8235500786c0559a7c (patch)
tree47c13c1a5b7ce0d6700073006c8bb38c1736dfe9 /indra/newview
parent7e746e9221bf90466644999364b3c3cc16c0af98 (diff)
MAINT-7653 Crash in LLVOAvatarSelf::updateAvatarRezMetrics(bool)
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llvoavatarself.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llvoavatarself.cpp b/indra/newview/llvoavatarself.cpp
index aa5d82a096..d62862dfb8 100644
--- a/indra/newview/llvoavatarself.cpp
+++ b/indra/newview/llvoavatarself.cpp
@@ -2246,7 +2246,9 @@ bool LLVOAvatarSelf::updateAvatarRezMetrics(bool force_send)
{
const F32 AV_METRICS_INTERVAL_QA = 30.0;
F32 send_period = 300.0;
- if (gSavedSettings.getBOOL("QAModeMetrics"))
+
+ static LLCachedControl<bool> qa_mode_metrics(gSavedSettings,"QAModeMetrics");
+ if (qa_mode_metrics)
{
send_period = AV_METRICS_INTERVAL_QA;
}