diff options
author | Justin Clark-Casey (justincc) | 2012-03-06 19:05:32 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-03-06 19:05:32 +0000 |
commit | 0f4cdc0c5bb750ec4ab7b100dc82d3ff08c9e427 (patch) | |
tree | bd8fe31cdfcb0da2d2e81a7d82e39e2eab81e5e7 /OpenSim/Region/Framework/Scenes/SimStatsReporter.cs | |
parent | Fix TestSyntaxError() and TestSyntaxErrorDeclaringVariableInForLoop() (diff) | |
download | opensim-SC_OLD-0f4cdc0c5bb750ec4ab7b100dc82d3ff08c9e427.zip opensim-SC_OLD-0f4cdc0c5bb750ec4ab7b100dc82d3ff08c9e427.tar.gz opensim-SC_OLD-0f4cdc0c5bb750ec4ab7b100dc82d3ff08c9e427.tar.bz2 opensim-SC_OLD-0f4cdc0c5bb750ec4ab7b100dc82d3ff08c9e427.tar.xz |
Explictly close down the StatsReporter so that we can shutdown its timer
This is another step necessary for the scene to be garbage collected between performance tests
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SimStatsReporter.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SimStatsReporter.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs b/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs index 35cd025..210f48d 100644 --- a/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs +++ b/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs | |||
@@ -185,6 +185,12 @@ namespace OpenSim.Region.Framework.Scenes | |||
185 | OnSendStatsResult += StatsManager.SimExtraStats.ReceiveClassicSimStatsPacket; | 185 | OnSendStatsResult += StatsManager.SimExtraStats.ReceiveClassicSimStatsPacket; |
186 | } | 186 | } |
187 | 187 | ||
188 | public void Close() | ||
189 | { | ||
190 | m_report.Elapsed -= statsHeartBeat; | ||
191 | m_report.Close(); | ||
192 | } | ||
193 | |||
188 | public void SetUpdateMS(int ms) | 194 | public void SetUpdateMS(int ms) |
189 | { | 195 | { |
190 | statsUpdatesEveryMS = ms; | 196 | statsUpdatesEveryMS = ms; |