diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneManager.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneManager.cs | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneManager.cs b/OpenSim/Region/Framework/Scenes/SceneManager.cs index dba3a61..89e3ac5 100644 --- a/OpenSim/Region/Framework/Scenes/SceneManager.cs +++ b/OpenSim/Region/Framework/Scenes/SceneManager.cs | |||
@@ -138,31 +138,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
138 | 138 | ||
139 | public void Close() | 139 | public void Close() |
140 | { | 140 | { |
141 | // collect known shared modules in sharedModules | ||
142 | Dictionary<string, IRegionModule> sharedModules = new Dictionary<string, IRegionModule>(); | ||
143 | |||
144 | List<Scene> sceneList = Scenes; | ||
145 | for (int i = 0; i < sceneList.Count; i++) | ||
146 | { | ||
147 | // extract known shared modules from scene | ||
148 | foreach (string k in sceneList[i].Modules.Keys) | ||
149 | { | ||
150 | if (sceneList[i].Modules[k].IsSharedModule && | ||
151 | !sharedModules.ContainsKey(k)) | ||
152 | sharedModules[k] = sceneList[i].Modules[k]; | ||
153 | } | ||
154 | // close scene/region | ||
155 | sceneList[i].Close(); | ||
156 | } | ||
157 | |||
158 | // all regions/scenes are now closed, we can now safely | ||
159 | // close all shared modules | ||
160 | foreach (IRegionModule mod in sharedModules.Values) | ||
161 | { | ||
162 | mod.Close(); | ||
163 | } | ||
164 | |||
165 | m_localScenes.Clear(); | ||
166 | } | 141 | } |
167 | 142 | ||
168 | public void Close(Scene cscene) | 143 | public void Close(Scene cscene) |