mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
Possibly fixes mantis #6429 (Flotsam cache having a null ref to the asset service)
This commit is contained in:
@@ -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>();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user