diff options
author | Diva Canto | 2009-10-09 14:36:08 -0700 |
---|---|---|
committer | Diva Canto | 2009-10-09 14:36:08 -0700 |
commit | f29bd8036dac4e3129b937cceda9606d496a20b7 (patch) | |
tree | 93366fcbe90e11f59cc4aeba2e789441eb25f50e /OpenSim | |
parent | This is to *try* to avoid the exception we are seeing repeatedly: (diff) | |
download | opensim-SC-f29bd8036dac4e3129b937cceda9606d496a20b7.zip opensim-SC-f29bd8036dac4e3129b937cceda9606d496a20b7.tar.gz opensim-SC-f29bd8036dac4e3129b937cceda9606d496a20b7.tar.bz2 opensim-SC-f29bd8036dac4e3129b937cceda9606d496a20b7.tar.xz |
A slight improvement on name fetching -- using the local name cache, since it exists.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Communications/CommunicationsManager.cs | 6 |
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 | ||