Changed avatarname cache to not re-request names for avatars with null uuid on reuqest errors

Ansariel 2012-05-17 14:56:17 +02:00
parent a3af449300
commit 6c287ccf97
1 changed files with 9 additions and 0 deletions

View File

@ -278,6 +278,15 @@ void LLAvatarNameCache::handleAgentError(const LLUUID& agent_id)
std::map<LLUUID,LLAvatarName>::iterator existing = sCache.find(agent_id);
if (existing == sCache.end())
{
// <FS:Ansariel> Don't re-request names for agents with null uuid.
if (agent_id.isNull())
{
LL_WARNS("AvNameCache") << "LLAvatarNameCache handling error for agent with null uuid" << LL_ENDL;
sPendingQueue.erase(agent_id);
return;
}
// </FS:Ansariel>
// there is no existing cache entry, so make a temporary name from legacy
LL_WARNS("AvNameCache") << "LLAvatarNameCache get legacy for agent "
<< agent_id << LL_ENDL;