Possibly fixes mantis #6429 (Flotsam cache having a null ref to the asset service)

integration
Diva Canto 2012-11-14 07:50:19 -08:00
parent 790b595aa0
commit c88e6fb445
1 changed files with 2 additions and 4 deletions

View File

@ -222,10 +222,6 @@ namespace OpenSim.Region.CoreModules.Asset
scene.RegisterModuleInterface<IImprovedAssetCache>(this);
m_Scenes.Add(scene);
if (m_AssetService == null)
{
m_AssetService = scene.RequestModuleInterface<IAssetService>();
}
}
}
@ -240,6 +236,8 @@ namespace OpenSim.Region.CoreModules.Asset
public void RegionLoaded(Scene scene)
{
if (m_Enabled && m_AssetService == null)
m_AssetService = scene.RequestModuleInterface<IAssetService>();
}
////////////////////////////////////////////////////////////