Making SimStatsReporter a little more restrained in requesting the IEstateModule interface.

0.6.5-rc1
diva 2009-05-12 22:48:54 +00:00
parent 12d7063b0b
commit 12a470e6a7
1 changed files with 3 additions and 1 deletions

View File

@ -115,6 +115,7 @@ namespace OpenSim.Region.Framework.Scenes
private Timer m_report = new Timer(); private Timer m_report = new Timer();
private IEstateModule estateModule;
public SimStatsReporter(Scene scene) public SimStatsReporter(Scene scene)
{ {
@ -151,7 +152,8 @@ namespace OpenSim.Region.Framework.Scenes
try try
{ {
IEstateModule estateModule = m_scene.RequestModuleInterface<IEstateModule>(); if (estateModule == null)
estateModule = m_scene.RequestModuleInterface<IEstateModule>();
regionFlags = estateModule != null ? estateModule.GetRegionFlags() : (uint) 0; regionFlags = estateModule != null ? estateModule.GetRegionFlags() : (uint) 0;
} }
catch (Exception) catch (Exception)