diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/XEngine/XEngine.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs index 696c216..aa11eca 100644 --- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs +++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | |||
@@ -1009,7 +1009,15 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
1009 | // Do we even have it? | 1009 | // Do we even have it? |
1010 | if (!m_Scripts.ContainsKey(itemID)) | 1010 | if (!m_Scripts.ContainsKey(itemID)) |
1011 | { | 1011 | { |
1012 | // Do we even have it? | ||
1013 | if (!m_Scripts.ContainsKey(itemID)) | ||
1014 | return; | ||
1015 | |||
1012 | lockScriptsForRead(false); | 1016 | lockScriptsForRead(false); |
1017 | lockScriptsForWrite(true); | ||
1018 | m_Scripts.Remove(itemID); | ||
1019 | lockScriptsForWrite(false); | ||
1020 | |||
1013 | return; | 1021 | return; |
1014 | } | 1022 | } |
1015 | 1023 | ||