From 23ebae1828a540a7754dafae1794467582fe35d5 Mon Sep 17 00:00:00 2001 From: Robert Adams Date: Tue, 14 May 2013 13:40:07 -0700 Subject: Eliminate race condition where SimStatsReporter starts reporting stats before the region is completely initialized. --- OpenSim/Region/Framework/Scenes/SimStatsReporter.cs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'OpenSim') diff --git a/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs b/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs index b9d615e..95f9caf 100644 --- a/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs +++ b/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs @@ -289,6 +289,9 @@ namespace OpenSim.Region.Framework.Scenes private void statsHeartBeat(object sender, EventArgs e) { + if (!m_scene.Active) + return; + SimStatsPacket.StatBlock[] sb = new SimStatsPacket.StatBlock[22]; SimStatsPacket.RegionBlock rb = new SimStatsPacket.RegionBlock(); -- cgit v1.1