From d460a3fc86dfae5c040562e697314114ab294987 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Mon, 25 May 2020 14:50:10 +0100 Subject: [PATCH] missing file --- OpenSim/Region/ScriptEngine/YEngine/XMREngine.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/OpenSim/Region/ScriptEngine/YEngine/XMREngine.cs b/OpenSim/Region/ScriptEngine/YEngine/XMREngine.cs index 8e419d071d..327bcacc8f 100644 --- a/OpenSim/Region/ScriptEngine/YEngine/XMREngine.cs +++ b/OpenSim/Region/ScriptEngine/YEngine/XMREngine.cs @@ -1898,31 +1898,35 @@ namespace OpenSim.Region.ScriptEngine.Yengine /** * @brief Block script from dequeuing events. */ - public void SuspendScript(UUID itemID) + public bool SuspendScript(UUID itemID) { XMRInstance instance = GetInstance(itemID); if(instance != null) { TraceCalls("[YEngine]: YEngine.SuspendScript({0})", itemID.ToString()); instance.SuspendIt(); + return true; } + return false; } /** * @brief Allow script to dequeue events. */ - public void ResumeScript(UUID itemID) + public bool ResumeScript(UUID itemID) { XMRInstance instance = GetInstance(itemID); if(instance != null) { TraceCalls("[YEngine]: YEngine.ResumeScript({0})", itemID.ToString()); instance.ResumeIt(); + return true; } else { // probably an XEngine script } + return false; } /**