From 61808d148e963ae59e4a3b5a99cdafff7bcb29c0 Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Fri, 23 Nov 2012 01:01:39 +0000 Subject: Fix regression where we stopped closing scenes on simulator exit. If we don't do this, then these scenes don't get deregistered from the grid, amongst other things. Regression was introduced in commit 8c130bc (Mon Nov 12 22:50:28 2012 +0000) --- OpenSim/Region/Framework/Scenes/SceneManager.cs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'OpenSim') diff --git a/OpenSim/Region/Framework/Scenes/SceneManager.cs b/OpenSim/Region/Framework/Scenes/SceneManager.cs index 9bd27d3..1c236db 100644 --- a/OpenSim/Region/Framework/Scenes/SceneManager.cs +++ b/OpenSim/Region/Framework/Scenes/SceneManager.cs @@ -141,6 +141,13 @@ namespace OpenSim.Region.Framework.Scenes public void Close() { + lock (m_localScenes) + { + for (int i = 0; i < m_localScenes.Count; i++) + { + m_localScenes[i].Close(); + } + } } public void Close(Scene cscene) -- cgit v1.1