From 262d9d30c01c92e20887d39f1c9358ca03a3cda4 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Mon, 17 Aug 2020 13:23:01 +0100 Subject: [PATCH] oh forgot the forced sleep.. we can't have that can we.. --- .../ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 19e6b8c931..12e46c090a 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -15171,14 +15171,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api { // => complain loudly, as specified by the LSL docs Error("llGetNotecardLine", "Can't find notecard '" + name + "'"); - return ScriptBaseClass.NULL_KEY; } if (NotecardCache.IsCached(assetID)) { - return m_AsyncCommands.DataserverPlugin.RequestWithImediatePost(m_host.LocalId, m_item.ItemID, + string eid = m_AsyncCommands.DataserverPlugin.RequestWithImediatePost(m_host.LocalId, m_item.ItemID, NotecardCache.GetLine(assetID, line, m_notecardLineReadCharsMax)); + + ScriptSleep(m_sleepMsOnGetNotecardLine); + return eid; } Action act = eventID =>