diff options
Diffstat (limited to 'OpenSim/Framework/Data.DB4o')
-rw-r--r-- | OpenSim/Framework/Data.DB4o/DB4oManager.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Framework/Data.DB4o/DB4oManager.cs b/OpenSim/Framework/Data.DB4o/DB4oManager.cs index 0e32938..c582866 100644 --- a/OpenSim/Framework/Data.DB4o/DB4oManager.cs +++ b/OpenSim/Framework/Data.DB4o/DB4oManager.cs | |||
@@ -123,7 +123,10 @@ namespace OpenSim.Framework.Data.DB4o | |||
123 | IObjectSet result = database.Get(typeof(UserProfileData)); | 123 | IObjectSet result = database.Get(typeof(UserProfileData)); |
124 | foreach (UserProfileData row in result) | 124 | foreach (UserProfileData row in result) |
125 | { | 125 | { |
126 | userProfiles.Add(row.UUID, row); | 126 | if (!userProfiles.ContainsKey(row.UUID)) |
127 | { | ||
128 | userProfiles.Add(row.UUID, row); | ||
129 | } | ||
127 | } | 130 | } |
128 | database.Close(); | 131 | database.Close(); |
129 | } | 132 | } |