aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDiva Canto2009-10-09 14:36:08 -0700
committerDiva Canto2009-10-09 14:36:08 -0700
commitf29bd8036dac4e3129b937cceda9606d496a20b7 (patch)
tree93366fcbe90e11f59cc4aeba2e789441eb25f50e
parentThis is to *try* to avoid the exception we are seeing repeatedly: (diff)
downloadopensim-SC_OLD-f29bd8036dac4e3129b937cceda9606d496a20b7.zip
opensim-SC_OLD-f29bd8036dac4e3129b937cceda9606d496a20b7.tar.gz
opensim-SC_OLD-f29bd8036dac4e3129b937cceda9606d496a20b7.tar.bz2
opensim-SC_OLD-f29bd8036dac4e3129b937cceda9606d496a20b7.tar.xz
A slight improvement on name fetching -- using the local name cache, since it exists.
-rw-r--r--OpenSim/Framework/Communications/CommunicationsManager.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Framework/Communications/CommunicationsManager.cs b/OpenSim/Framework/Communications/CommunicationsManager.cs
index 9c02842..4bf9018 100644
--- a/OpenSim/Framework/Communications/CommunicationsManager.cs
+++ b/OpenSim/Framework/Communications/CommunicationsManager.cs
@@ -209,6 +209,12 @@ namespace OpenSim.Framework.Communications
209 209
210 private string[] doUUIDNameRequest(UUID uuid) 210 private string[] doUUIDNameRequest(UUID uuid)
211 { 211 {
212 lock (m_nameRequestCache)
213 {
214 if (m_nameRequestCache.ContainsKey(uuid))
215 return m_nameRequestCache[uuid];
216 }
217
212 string[] returnstring = new string[0]; 218 string[] returnstring = new string[0];
213 CachedUserInfo uinfo = UserProfileCacheService.GetUserDetails(uuid); 219 CachedUserInfo uinfo = UserProfileCacheService.GetUserDetails(uuid);
214 220