From 95b89096c45f0a8768bc72f0dfe67c9d0d135d25 Mon Sep 17 00:00:00 2001 From: Brian McBee Date: Sun, 12 Aug 2007 16:17:04 +0000 Subject: [PATCH] Hopefully fixes userprofiles.yap problem on startup. (thanks Adam!) --- OpenSim/Framework/Data.DB4o/DB4oManager.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/OpenSim/Framework/Data.DB4o/DB4oManager.cs b/OpenSim/Framework/Data.DB4o/DB4oManager.cs index 230a70789b..ef8f7dddf0 100644 --- a/OpenSim/Framework/Data.DB4o/DB4oManager.cs +++ b/OpenSim/Framework/Data.DB4o/DB4oManager.cs @@ -123,11 +123,10 @@ namespace OpenSim.Framework.Data.DB4o IObjectSet result = database.Get(typeof(UserProfileData)); foreach (UserProfileData row in result) { - if (!userProfiles.ContainsKey(row.UUID)) - { + if (userProfiles.ContainsKey(row.UUID)) + userProfiles[row.UUID] = row; + else userProfiles.Add(row.UUID, row); - } - } database.Close(); }