diff options
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs index 8a16943..f351da6 100644 --- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs +++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | |||
@@ -256,10 +256,13 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer | |||
256 | 256 | ||
257 | public virtual void RemoveRegion(Scene scene) | 257 | public virtual void RemoveRegion(Scene scene) |
258 | { | 258 | { |
259 | StatsManager.DeregisterStat(m_interRegionTeleportAttempts); | 259 | if (m_Enabled) |
260 | StatsManager.DeregisterStat(m_interRegionTeleportAborts); | 260 | { |
261 | StatsManager.DeregisterStat(m_interRegionTeleportCancels); | 261 | StatsManager.DeregisterStat(m_interRegionTeleportAttempts); |
262 | StatsManager.DeregisterStat(m_interRegionTeleportFailures); | 262 | StatsManager.DeregisterStat(m_interRegionTeleportAborts); |
263 | StatsManager.DeregisterStat(m_interRegionTeleportCancels); | ||
264 | StatsManager.DeregisterStat(m_interRegionTeleportFailures); | ||
265 | } | ||
263 | } | 266 | } |
264 | 267 | ||
265 | public virtual void RegionLoaded(Scene scene) | 268 | public virtual void RegionLoaded(Scene scene) |