Workaround for DN's not internally caching: ignore misinitialized LLAvatarName.mExpires

--HG--
branch : Firestorm_2.4.2
meow-7.2.2
Arrehn 2011-03-21 17:22:38 -04:00
parent 6e5c150d33
commit 8dcfe507c0
1 changed files with 11 additions and 1 deletions

View File

@ -678,14 +678,24 @@ void LLAvatarNameCache::get(const LLUUID& agent_id, callback_slot_t slot)
std::map<LLUUID,LLAvatarName>::iterator it = sCache.find(agent_id);
if (it != sCache.end())
{
const LLAvatarName& av_name = it->second;
LLAvatarName& av_name = it->second;
//AO: this is broken, it comes up as expired prematurely.
//disable the expire test as a temp workaround.
/*
if (av_name.mExpires > LLFrameTimer::getTotalSeconds())
{
*/
// ...name already exists in cache, fire callback now
fireSignal(agent_id, slot, av_name);
llinfos << "AO: namelookup cache hit: " << agent_id << llendl;
return;
/*
}
else
llinfos << "AO: namelookup expired, re-requesting: " << agent_id << llendl;
*/
}
}
else