diff --git a/OpenSim/Services/Connectors/Estate/EstateDataConnector.cs b/OpenSim/Services/Connectors/Estate/EstateDataConnector.cs index eed25cc8f7..74935f37df 100644 --- a/OpenSim/Services/Connectors/Estate/EstateDataConnector.cs +++ b/OpenSim/Services/Connectors/Estate/EstateDataConnector.cs @@ -119,8 +119,8 @@ namespace OpenSim.Services.Connectors List eids = new List(); // If we don't have them, load them from the server List estates = null; - if (!m_EstateCache.TryGetValue("estates", out estates) || estates == null) - LoadEstateSettingsAll(); + if (!m_EstateCache.TryGetValue("estates", out estates)) + estates = LoadEstateSettingsAll(); foreach (EstateSettings es in estates) eids.Add((int)es.EstateID); @@ -132,8 +132,8 @@ namespace OpenSim.Services.Connectors { // If we don't have them, load them from the server List estates = null; - if (!m_EstateCache.TryGetValue("estates", out estates) || estates == null) - LoadEstateSettingsAll(); + if (!m_EstateCache.TryGetValue("estates", out estates)) + estates = LoadEstateSettingsAll(); List eids = new List(); foreach (EstateSettings es in estates) @@ -147,8 +147,8 @@ namespace OpenSim.Services.Connectors { // If we don't have them, load them from the server List estates = null; - if (!m_EstateCache.TryGetValue("estates", out estates) || estates == null) - LoadEstateSettingsAll(); + if (!m_EstateCache.TryGetValue("estates", out estates)) + estates = LoadEstateSettingsAll(); List eids = new List(); foreach (EstateSettings es in estates)