From 42b0c68eabcd79ea1d7d5776b399bcbb46bbbf98 Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Sat, 15 Jun 2013 00:46:55 +0100 Subject: Correct build break in previous commit 9c530d7 --- .../Avatar/UserProfiles/UserProfileModule.cs | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/CoreModules/Avatar/UserProfiles/UserProfileModule.cs b/OpenSim/Region/CoreModules/Avatar/UserProfiles/UserProfileModule.cs index 97bb781..d7ffea8 100644 --- a/OpenSim/Region/CoreModules/Avatar/UserProfiles/UserProfileModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/UserProfiles/UserProfileModule.cs @@ -60,8 +60,8 @@ namespace OpenSim.Region.OptionalModules.Avatar.UserProfiles // The pair of Dictionaries are used to handle the switching of classified ads // by maintaining a cache of classified id to creator id mappings and an interest // count. The entries are removed when the interest count reaches 0. - Dictionary m_classifiedCache = new Dictionary(); - Dictionary m_classifiedInterest = new Dictionary(); + Dictionary m_classifiedCache = new Dictionary(); + Dictionary m_classifiedInterest = new Dictionary(); public Scene Scene { @@ -102,7 +102,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.UserProfiles /// /// Gets or sets a value indicating whether this - /// is enabled. + /// is enabled. /// /// /// true if enabled; otherwise, false. @@ -331,15 +331,13 @@ namespace OpenSim.Region.OptionalModules.Avatar.UserProfiles classifieds[cid] = name; - lock(m_classifiedCache) + if (!m_classifiedCache.ContainsKey(cid)) { - if (!m_classifiedCache.ContainsKey(cid)) - { + lock(m_classifiedCache) m_classifiedCache.Add(cid,creatorId); - lock(m_classifiedInterest) - m_classifiedInterest.Add(cid, 0); - } + lock(m_classifiedInterest) + m_classifiedInterest.Add(cid, 0); } lock(m_classifiedInterest) @@ -355,7 +353,6 @@ namespace OpenSim.Region.OptionalModules.Avatar.UserProfiles UserClassifiedAdd ad = new UserClassifiedAdd(); ad.ClassifiedId = queryClassifiedID; - lock (classifie if (m_classifiedCache.ContainsKey(queryClassifiedID)) { target = m_classifiedCache[queryClassifiedID]; -- cgit v1.1