aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs6
1 files changed, 2 insertions, 4 deletions
diff --git a/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs b/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs
index 232d9f5..8e800cb 100644
--- a/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs
+++ b/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs
@@ -222,10 +222,6 @@ namespace OpenSim.Region.CoreModules.Asset
222 scene.RegisterModuleInterface<IImprovedAssetCache>(this); 222 scene.RegisterModuleInterface<IImprovedAssetCache>(this);
223 m_Scenes.Add(scene); 223 m_Scenes.Add(scene);
224 224
225 if (m_AssetService == null)
226 {
227 m_AssetService = scene.RequestModuleInterface<IAssetService>();
228 }
229 } 225 }
230 } 226 }
231 227
@@ -240,6 +236,8 @@ namespace OpenSim.Region.CoreModules.Asset
240 236
241 public void RegionLoaded(Scene scene) 237 public void RegionLoaded(Scene scene)
242 { 238 {
239 if (m_Enabled && m_AssetService == null)
240 m_AssetService = scene.RequestModuleInterface<IAssetService>();
243 } 241 }
244 242
245 //////////////////////////////////////////////////////////// 243 ////////////////////////////////////////////////////////////