From c2e75aecd1eba90d3a376896f1a798a4c9c58e6d Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Tue, 14 Apr 2009 01:57:35 +0000 Subject: * Commit a variety of fixes to bugs discovered while trying to fix the NaN singularity. * WebStatsModule doesn't crash on restart. GodsModule doesn't crash when there is no Dialog Module. LLUDPServer doesn't crash when the Operation was Aborted. * ODEPlugin does 'Almost NaN' sanity checks. * ODEPlugin sacrifices NaN avatars to the NaN black hole to appease it and keep it from sucking the rest of the world in. --- OpenSim/Region/UserStatistics/WebStatsModule.cs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'OpenSim/Region/UserStatistics') diff --git a/OpenSim/Region/UserStatistics/WebStatsModule.cs b/OpenSim/Region/UserStatistics/WebStatsModule.cs index cdbf1db..d427401 100644 --- a/OpenSim/Region/UserStatistics/WebStatsModule.cs +++ b/OpenSim/Region/UserStatistics/WebStatsModule.cs @@ -131,6 +131,9 @@ namespace OpenSim.Region.UserStatistics } m_scene.Add(scene); + if (m_simstatsCounters.ContainsKey(scene.RegionInfo.RegionID)) + m_simstatsCounters.Remove(scene.RegionInfo.RegionID); + m_simstatsCounters.Add(scene.RegionInfo.RegionID, new USimStatsData(scene.RegionInfo.RegionID)); scene.StatsReporter.OnSendStatsResult += ReceiveClassicSimStatsPacket; } @@ -293,6 +296,10 @@ namespace OpenSim.Region.UserStatistics } dbConn.Close(); dbConn.Dispose(); + m_sessions.Clear(); + m_scene.Clear(); + reports.Clear(); + m_simstatsCounters.Clear(); } public virtual string Name -- cgit v1.1