diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs b/OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs index 6847e57..d99c8eb 100644 --- a/OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs +++ b/OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs | |||
@@ -246,10 +246,15 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement | |||
246 | } | 246 | } |
247 | 247 | ||
248 | // search the local cache | 248 | // search the local cache |
249 | foreach (UserData data in m_UserCache.Values) | 249 | lock (m_UserCache) |
250 | if (users.Find(delegate(UserData d) { return d.Id == data.Id; }) == null && | 250 | { |
251 | (data.FirstName.ToLower().StartsWith(query.ToLower()) || data.LastName.ToLower().StartsWith(query.ToLower()))) | 251 | foreach (UserData data in m_UserCache.Values) |
252 | users.Add(data); | 252 | { |
253 | if (users.Find(delegate(UserData d) { return d.Id == data.Id; }) == null && | ||
254 | (data.FirstName.ToLower().StartsWith(query.ToLower()) || data.LastName.ToLower().StartsWith(query.ToLower()))) | ||
255 | users.Add(data); | ||
256 | } | ||
257 | } | ||
253 | 258 | ||
254 | AddAdditionalUsers(query, users); | 259 | AddAdditionalUsers(query, users); |
255 | 260 | ||