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

This commit is contained in:
MW
2007-08-11 20:02:34 +00:00
parent 3520e9e3ee
commit cea2e45da9

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();
}