Fix a build break introduced by us having a more efficient DoubleDictionary

where core has a simple list
avinationmerge
Melanie 2012-11-23 02:03:44 +00:00
parent 2abddedc34
commit b09fb01571
1 changed files with 8 additions and 4 deletions

View File

@ -138,12 +138,16 @@ namespace OpenSim.Region.Framework.Scenes
public void Close() public void Close()
{ {
List<Scene> localScenes = null;
lock (m_localScenes) lock (m_localScenes)
{ {
for (int i = 0; i < m_localScenes.Count; i++) localScenes = Scenes;
{ }
m_localScenes[i].Close();
} for (int i = 0; i < localScenes.Count; i++)
{
localScenes[i].Close();
} }
} }