aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Framework/Scenes/SimStatsReporter.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs b/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs
index 91e1f2c..7e310ac 100644
--- a/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs
+++ b/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs
@@ -115,6 +115,7 @@ namespace OpenSim.Region.Framework.Scenes
115 115
116 private Timer m_report = new Timer(); 116 private Timer m_report = new Timer();
117 117
118 private IEstateModule estateModule;
118 119
119 public SimStatsReporter(Scene scene) 120 public SimStatsReporter(Scene scene)
120 { 121 {
@@ -151,7 +152,8 @@ namespace OpenSim.Region.Framework.Scenes
151 152
152 try 153 try
153 { 154 {
154 IEstateModule estateModule = m_scene.RequestModuleInterface<IEstateModule>(); 155 if (estateModule == null)
156 estateModule = m_scene.RequestModuleInterface<IEstateModule>();
155 regionFlags = estateModule != null ? estateModule.GetRegionFlags() : (uint) 0; 157 regionFlags = estateModule != null ? estateModule.GetRegionFlags() : (uint) 0;
156 } 158 }
157 catch (Exception) 159 catch (Exception)