minor: Only try to deregister stats in EntityTransferModule.RemoveRegion() if module was enabled.
parent
0d67aa23d5
commit
15c79a3f16
|
@ -253,10 +253,13 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
|
||||||
|
|
||||||
public virtual void RemoveRegion(Scene scene)
|
public virtual void RemoveRegion(Scene scene)
|
||||||
{
|
{
|
||||||
StatsManager.DeregisterStat(m_interRegionTeleportAttempts);
|
if (m_Enabled)
|
||||||
StatsManager.DeregisterStat(m_interRegionTeleportAborts);
|
{
|
||||||
StatsManager.DeregisterStat(m_interRegionTeleportCancels);
|
StatsManager.DeregisterStat(m_interRegionTeleportAttempts);
|
||||||
StatsManager.DeregisterStat(m_interRegionTeleportFailures);
|
StatsManager.DeregisterStat(m_interRegionTeleportAborts);
|
||||||
|
StatsManager.DeregisterStat(m_interRegionTeleportCancels);
|
||||||
|
StatsManager.DeregisterStat(m_interRegionTeleportFailures);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public virtual void RegionLoaded(Scene scene)
|
public virtual void RegionLoaded(Scene scene)
|
||||||
|
|
Loading…
Reference in New Issue