Eliminate race condition where SimStatsReporter starts reporting

stats before the region is completely initialized.
0.7.5-pf-bulletsim
Robert Adams 2013-05-14 13:40:07 -07:00
parent 00d125dada
commit cfbb4f52e4
1 changed files with 3 additions and 0 deletions

View File

@ -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();