Making SimStatsReporter a little more restrained in requesting the IEstateModule interface.
parent
12d7063b0b
commit
12a470e6a7
|
@ -115,6 +115,7 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
|
||||
private Timer m_report = new Timer();
|
||||
|
||||
private IEstateModule estateModule;
|
||||
|
||||
public SimStatsReporter(Scene scene)
|
||||
{
|
||||
|
@ -151,7 +152,8 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
|
||||
try
|
||||
{
|
||||
IEstateModule estateModule = m_scene.RequestModuleInterface<IEstateModule>();
|
||||
if (estateModule == null)
|
||||
estateModule = m_scene.RequestModuleInterface<IEstateModule>();
|
||||
regionFlags = estateModule != null ? estateModule.GetRegionFlags() : (uint) 0;
|
||||
}
|
||||
catch (Exception)
|
||||
|
|
Loading…
Reference in New Issue