From 454ef28944c7019d9ff7f7c682934b217c01cfb4 Mon Sep 17 00:00:00 2001 From: andreykproductengine Date: Tue, 26 Jan 2016 19:38:50 +0200 Subject: MAINT-6049 FIXED Wall of Capability-Related Spam on Entering Region --- indra/newview/llappviewer.cpp | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'indra/newview') 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(); -- cgit v1.2.3