From 12a470e6a71217d3324826bfbf12ad7904fed262 Mon Sep 17 00:00:00 2001 From: diva Date: Tue, 12 May 2009 22:48:54 +0000 Subject: Making SimStatsReporter a little more restrained in requesting the IEstateModule interface. --- OpenSim/Region/Framework/Scenes/SimStatsReporter.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'OpenSim') 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 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(); + if (estateModule == null) + estateModule = m_scene.RequestModuleInterface(); regionFlags = estateModule != null ? estateModule.GetRegionFlags() : (uint) 0; } catch (Exception) -- cgit v1.1