sleep a script by 1second on non fatal OSSL errors

master
UbitUmarov 2020-04-14 17:01:35 +01:00
parent f20845c89e
commit 944f3dd7ec
1 changed files with 6 additions and 1 deletions

View File

@ -298,7 +298,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
IWorldComm wComm = m_ScriptEngine.World.RequestModuleInterface<IWorldComm>();
if(wComm != null)
wComm.DeliverMessage(ChatTypeEnum.Shout, ScriptBaseClass.DEBUG_CHANNEL, m_host.Name, m_host.UUID, message);
}
if (m_item != null)
m_ScriptEngine.SleepScript(m_item.ItemID, 1000);
else
Thread.Sleep(1000);
}
// Returns if OSSL is enabled. Throws a script exception if OSSL is not allowed..
// for safe funtions always active