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