Test m_Enabled on RemoveRegion.

bulletsim
Diva Canto 2011-05-04 20:40:25 -07:00
parent 6d34932775
commit e8944d6c31
3 changed files with 9 additions and 0 deletions

View File

@ -87,6 +87,9 @@ namespace OpenSim.Region.ClientStack.Linden
public void RemoveRegion(Scene scene) public void RemoveRegion(Scene scene)
{ {
if (!m_Enabled)
return;
m_scene.EventManager.OnRegisterCaps -= RegisterCaps; m_scene.EventManager.OnRegisterCaps -= RegisterCaps;
m_scene = null; m_scene = null;
} }

View File

@ -90,6 +90,9 @@ namespace OpenSim.Region.ClientStack.Linden
public void RemoveRegion(Scene s) public void RemoveRegion(Scene s)
{ {
if (!m_Enabled)
return;
m_scene.EventManager.OnRegisterCaps -= RegisterCaps; m_scene.EventManager.OnRegisterCaps -= RegisterCaps;
m_scene = null; m_scene = null;
} }

View File

@ -79,6 +79,9 @@ namespace OpenSim.Region.ClientStack.Linden
public void RemoveRegion(Scene s) public void RemoveRegion(Scene s)
{ {
if (!m_Enabled)
return;
m_scene.EventManager.OnRegisterCaps -= RegisterCaps; m_scene.EventManager.OnRegisterCaps -= RegisterCaps;
m_scene = null; m_scene = null;
} }