aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/UserStatistics/WebStatsModule.cs
diff options
context:
space:
mode:
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