diff options
author | andreykproductengine <akleshchev@productengine.com> | 2016-01-26 19:38:50 +0200 |
---|---|---|
committer | andreykproductengine <akleshchev@productengine.com> | 2016-01-26 19:38:50 +0200 |
commit | 454ef28944c7019d9ff7f7c682934b217c01cfb4 (patch) | |
tree | a18b7907e1c027099564ea56b68e20fb1c41f4a4 /indra/newview | |
parent | 331be5d3d0cd897fac2a6834e1d35f4adc4edbd7 (diff) |
MAINT-6049 FIXED Wall of Capability-Related Spam on Entering Region
Diffstat (limited to 'indra/newview')
-rwxr-xr-x | indra/newview/llappviewer.cpp | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp index 2898d8ca31..e1d5153c16 100755 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -5374,13 +5374,21 @@ void LLAppViewer::idleExperienceCache() { LLViewerRegion* region = gAgent.getRegion(); if (!region) return; - - std::string lookup_url=region->getCapability("GetExperienceInfo"); - if(!lookup_url.empty() && *lookup_url.rbegin() != '/') - { - lookup_url += '/'; - } - + + std::string lookup_url; + if (region->capabilitiesReceived()) + { + lookup_url = region->getCapability("GetExperienceInfo"); + if (!lookup_url.empty() && *lookup_url.rbegin() != '/') + { + lookup_url += '/'; + } + } + else + { + LL_WARNS_ONCE() << "GetExperienceInfo capability is not yet recieved" << LL_ENDL; + } + LLExperienceCache::setLookupURL(lookup_url); LLExperienceCache::idle(); |