From b09fb01571f97643fd66a32a1fe75fc45863cc73 Mon Sep 17 00:00:00 2001 From: Melanie Date: Fri, 23 Nov 2012 02:03:44 +0000 Subject: [PATCH] Fix a build break introduced by us having a more efficient DoubleDictionary where core has a simple list --- OpenSim/Region/Framework/Scenes/SceneManager.cs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/OpenSim/Region/Framework/Scenes/SceneManager.cs b/OpenSim/Region/Framework/Scenes/SceneManager.cs index a88e86db4f..ff12d94686 100644 --- a/OpenSim/Region/Framework/Scenes/SceneManager.cs +++ b/OpenSim/Region/Framework/Scenes/SceneManager.cs @@ -138,12 +138,16 @@ namespace OpenSim.Region.Framework.Scenes public void Close() { + List localScenes = null; + lock (m_localScenes) { - for (int i = 0; i < m_localScenes.Count; i++) - { - m_localScenes[i].Close(); - } + localScenes = Scenes; + } + + for (int i = 0; i < localScenes.Count; i++) + { + localScenes[i].Close(); } }