sleep a script by 1second on non fatal OSSL errors
parent
f20845c89e
commit
944f3dd7ec
|
@ -298,6 +298,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
IWorldComm wComm = m_ScriptEngine.World.RequestModuleInterface<IWorldComm>();
|
IWorldComm wComm = m_ScriptEngine.World.RequestModuleInterface<IWorldComm>();
|
||||||
if(wComm != null)
|
if(wComm != null)
|
||||||
wComm.DeliverMessage(ChatTypeEnum.Shout, ScriptBaseClass.DEBUG_CHANNEL, m_host.Name, m_host.UUID, message);
|
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..
|
// Returns if OSSL is enabled. Throws a script exception if OSSL is not allowed..
|
||||||
|
|
Loading…
Reference in New Issue