Eliminate race condition where SimStatsReporter starts reporting

stats before the region is completely initialized.
user_profiles
Robert Adams 2013-05-14 13:40:07 -07:00
parent df2a0fec5f
commit 23ebae1828
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();