From 04625109560fb54d613b1fc9c81a8a9f387720c9 Mon Sep 17 00:00:00 2001 From: Jeff Ames Date: Fri, 30 May 2008 08:35:57 +0000 Subject: Update svn properties. Formatting cleanup. --- OpenSim/Framework/Communications/CommunicationsManager.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'OpenSim/Framework/Communications/CommunicationsManager.cs') diff --git a/OpenSim/Framework/Communications/CommunicationsManager.cs b/OpenSim/Framework/Communications/CommunicationsManager.cs index cc64e6c..e8353b4 100644 --- a/OpenSim/Framework/Communications/CommunicationsManager.cs +++ b/OpenSim/Framework/Communications/CommunicationsManager.cs @@ -255,28 +255,28 @@ namespace OpenSim.Framework.Communications remote_client.SendNameReply(uuid, names[0], names[1]); } - } + } } private string[] doUUIDNameRequest(LLUUID uuid) { string[] returnstring = new string[0]; bool doLookup = false; - - + + lock (m_nameRequestCache) { if (m_nameRequestCache.ContainsKey(uuid)) { returnstring = m_nameRequestCache[uuid]; } - else + else { // we don't want to lock the dictionary while we're doing the lookup doLookup = true; } } - + if (doLookup) { UserProfileData profileData = m_userService.GetUserProfile(uuid); if (profileData != null) @@ -293,7 +293,7 @@ namespace OpenSim.Framework.Communications } } return returnstring; - + } public bool UUIDNameCachedTest(LLUUID uuid) @@ -311,7 +311,7 @@ namespace OpenSim.Framework.Communications string lastname = names[1]; return firstname + " " + lastname; - + } return "(hippos)"; } -- cgit v1.1