* Added a lock to the user profile cache to prevent simultaneous duplicate additions to the database. (Attempting to fix bug reported by nebadon)
parent
7f2ec02802
commit
4dc8e7e0f8
|
@ -58,6 +58,9 @@ namespace OpenSim.Framework.Communications.Caches
|
|||
/// </summary>
|
||||
/// <param name="userID"></param>
|
||||
public void AddNewUser(LLUUID userID)
|
||||
{
|
||||
// Potential fix - Multithreading issue.
|
||||
lock (UserProfiles)
|
||||
{
|
||||
if (!this.UserProfiles.ContainsKey(userID))
|
||||
{
|
||||
|
@ -74,6 +77,7 @@ namespace OpenSim.Framework.Communications.Caches
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// A new user has moved into a region in this instance
|
||||
|
|
Loading…
Reference in New Issue