* correct bug from last commit - for now don't drop cached user profile when an agent is downgraded to a child agent

* since upgrading to a root agent doesn't currently re-retrieve the user profile
This commit is contained in:
Justin Clarke Casey
2008-08-01 19:24:48 +00:00
parent 43b2ff1d11
commit 10e0df0a2d
2 changed files with 12 additions and 21 deletions

View File

@@ -65,6 +65,8 @@ namespace OpenSim.Framework.Communications.Cache
/// <param name="userID"></param>
public void AddNewUser(IClientAPI remoteClient)
{
m_log.DebugFormat("[USER CACHE]: Adding user profile for {0} {1}", remoteClient.Name, remoteClient.AgentId);
// Potential fix - Multithreading issue.
lock (m_userProfiles)
{
@@ -92,6 +94,8 @@ namespace OpenSim.Framework.Communications.Cache
/// <param name="userID"></param>
public void AddNewUser(LLUUID userID)
{
m_log.DebugFormat("[USER CACHE]: Adding user profile for {0}", userID);
// Potential fix - Multithreading issue.
lock (m_userProfiles)
{