Don't execute rest of code in XEngine.RemoveRegion() and Close() if the module is disabled.
parent
4e7d4330c2
commit
ee84c0589c
|
@ -269,6 +269,9 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||||
|
|
||||||
public void RemoveRegion(Scene scene)
|
public void RemoveRegion(Scene scene)
|
||||||
{
|
{
|
||||||
|
if (!m_Enabled)
|
||||||
|
return;
|
||||||
|
|
||||||
lock (m_Scripts)
|
lock (m_Scripts)
|
||||||
{
|
{
|
||||||
m_log.InfoFormat(
|
m_log.InfoFormat(
|
||||||
|
@ -351,6 +354,9 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||||
|
|
||||||
public void Close()
|
public void Close()
|
||||||
{
|
{
|
||||||
|
if (!m_Enabled)
|
||||||
|
return;
|
||||||
|
|
||||||
lock (m_ScriptEngines)
|
lock (m_ScriptEngines)
|
||||||
{
|
{
|
||||||
if (m_ScriptEngines.Contains(this))
|
if (m_ScriptEngines.Contains(this))
|
||||||
|
|
Loading…
Reference in New Issue