diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index f364032..399c6e4 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -403,6 +403,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
403 | 403 | ||
404 | protected virtual void Sleep(int delay) | 404 | protected virtual void Sleep(int delay) |
405 | { | 405 | { |
406 | if (m_item == null) // Some unit tests don't set this | ||
407 | { | ||
408 | Thread.Sleep(delay); | ||
409 | return; | ||
410 | } | ||
411 | |||
406 | m_ScriptEngine.SleepScript(m_item.ItemID, delay); | 412 | m_ScriptEngine.SleepScript(m_item.ItemID, delay); |
407 | } | 413 | } |
408 | 414 | ||