aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/UserStatistics/WebStatsModule.cs
diff options
context:
space:
mode:
authorTeravus Ovares2009-04-14 01:57:35 +0000
committerTeravus Ovares2009-04-14 01:57:35 +0000
commitc2e75aecd1eba90d3a376896f1a798a4c9c58e6d (patch)
tree277760c63ec2af87374d62e2c3fd78a081e4be7a /OpenSim/Region/UserStatistics/WebStatsModule.cs
parent* Set eol-style: native on J2KImage.cs (diff)
downloadopensim-SC-c2e75aecd1eba90d3a376896f1a798a4c9c58e6d.zip
opensim-SC-c2e75aecd1eba90d3a376896f1a798a4c9c58e6d.tar.gz
opensim-SC-c2e75aecd1eba90d3a376896f1a798a4c9c58e6d.tar.bz2
opensim-SC-c2e75aecd1eba90d3a376896f1a798a4c9c58e6d.tar.xz
* 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.
Diffstat (limited to 'OpenSim/Region/UserStatistics/WebStatsModule.cs')
-rw-r--r--OpenSim/Region/UserStatistics/WebStatsModule.cs7
1 files changed, 7 insertions, 0 deletions
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
131 } 131 }
132 132
133 m_scene.Add(scene); 133 m_scene.Add(scene);
134 if (m_simstatsCounters.ContainsKey(scene.RegionInfo.RegionID))
135 m_simstatsCounters.Remove(scene.RegionInfo.RegionID);
136
134 m_simstatsCounters.Add(scene.RegionInfo.RegionID, new USimStatsData(scene.RegionInfo.RegionID)); 137 m_simstatsCounters.Add(scene.RegionInfo.RegionID, new USimStatsData(scene.RegionInfo.RegionID));
135 scene.StatsReporter.OnSendStatsResult += ReceiveClassicSimStatsPacket; 138 scene.StatsReporter.OnSendStatsResult += ReceiveClassicSimStatsPacket;
136 } 139 }
@@ -293,6 +296,10 @@ namespace OpenSim.Region.UserStatistics
293 } 296 }
294 dbConn.Close(); 297 dbConn.Close();
295 dbConn.Dispose(); 298 dbConn.Dispose();
299 m_sessions.Clear();
300 m_scene.Clear();
301 reports.Clear();
302 m_simstatsCounters.Clear();
296 } 303 }
297 304
298 public virtual string Name 305 public virtual string Name