A attempt to fix the user manager db4o crash bug (where you have to delete userprofiles.yap to get opensim to start)

afrisby
MW 2007-08-11 20:02:34 +00:00
parent 3520e9e3ee
commit cea2e45da9
1 changed files with 4 additions and 1 deletions

View File

@ -123,7 +123,10 @@ namespace OpenSim.Framework.Data.DB4o
IObjectSet result = database.Get(typeof(UserProfileData));
foreach (UserProfileData row in result)
{
userProfiles.Add(row.UUID, row);
if (!userProfiles.ContainsKey(row.UUID))
{
userProfiles.Add(row.UUID, row);
}
}
database.Close();
}