diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs index a2bc397..1a7d044 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | |||
@@ -79,7 +79,15 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
79 | if (m_state != value) | 79 | if (m_state != value) |
80 | { | 80 | { |
81 | m_state = value; | 81 | m_state = value; |
82 | m_ScriptEngine.m_EventManager.state_entry(m_localID); | 82 | try |
83 | { | ||
84 | m_ScriptEngine.m_EventManager.state_entry(m_localID); | ||
85 | |||
86 | } | ||
87 | catch (AppDomainUnloadedException) | ||
88 | { | ||
89 | System.Console.WriteLine("[SCRIPT]: state change called when script was unloaded. Nothing to worry about, but noting the occurance"); | ||
90 | } | ||
83 | } | 91 | } |
84 | } | 92 | } |
85 | } | 93 | } |