diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/World/Estate/XEstateConnector.cs')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Estate/XEstateConnector.cs | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/OpenSim/Region/CoreModules/World/Estate/XEstateConnector.cs b/OpenSim/Region/CoreModules/World/Estate/XEstateConnector.cs index 948c893..73e706c 100644 --- a/OpenSim/Region/CoreModules/World/Estate/XEstateConnector.cs +++ b/OpenSim/Region/CoreModules/World/Estate/XEstateConnector.cs | |||
@@ -136,15 +136,18 @@ namespace OpenSim.Region.CoreModules.World.Estate | |||
136 | 136 | ||
137 | // Handle local regions locally | 137 | // Handle local regions locally |
138 | // | 138 | // |
139 | foreach (Scene s in m_EstateModule.Scenes) | 139 | lock (m_EstateModule.Scenes) |
140 | { | 140 | { |
141 | if (regions.Contains(s.RegionInfo.RegionID)) | 141 | foreach (Scene s in m_EstateModule.Scenes) |
142 | { | 142 | { |
143 | // All regions in one estate are in the same scope. | 143 | if (regions.Contains(s.RegionInfo.RegionID)) |
144 | // Use that scope. | 144 | { |
145 | // | 145 | // All regions in one estate are in the same scope. |
146 | ScopeID = s.RegionInfo.ScopeID; | 146 | // Use that scope. |
147 | regions.Remove(s.RegionInfo.RegionID); | 147 | // |
148 | ScopeID = s.RegionInfo.ScopeID; | ||
149 | regions.Remove(s.RegionInfo.RegionID); | ||
150 | } | ||
148 | } | 151 | } |
149 | } | 152 | } |
150 | 153 | ||