mirror of
https://github.com/opensim/opensim.git
synced 2026-05-15 03:15:41 +08:00
Don't execute rest of code in XEngine.RemoveRegion() and Close() if the module is disabled.
This commit is contained in:
@@ -269,6 +269,9 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
|
||||
public void RemoveRegion(Scene scene)
|
||||
{
|
||||
if (!m_Enabled)
|
||||
return;
|
||||
|
||||
lock (m_Scripts)
|
||||
{
|
||||
m_log.InfoFormat(
|
||||
@@ -351,6 +354,9 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
|
||||
public void Close()
|
||||
{
|
||||
if (!m_Enabled)
|
||||
return;
|
||||
|
||||
lock (m_ScriptEngines)
|
||||
{
|
||||
if (m_ScriptEngines.Contains(this))
|
||||
|
||||
Reference in New Issue
Block a user