Insert a 15 seconds delay before the script engine starts loading scripts

0.6.2-post-fixes
Melanie Thielker 2008-12-28 17:22:31 +00:00
parent 6eed7fcd1e
commit 81a4fe9db7
1 changed files with 7 additions and 0 deletions

View File

@ -70,6 +70,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine
private int m_SaveTime;
private ThreadPriority m_Prio;
private bool m_Enabled = false;
private bool m_InitialStartup = true;
// disable warning: need to keep a reference to XEngine.EventManager
// alive to avoid it being garbage collected
@ -412,6 +413,12 @@ namespace OpenSim.Region.ScriptEngine.XEngine
public Object DoOnRezScriptQueue(Object dummy)
{
if (m_InitialStartup)
{
m_InitialStartup = false;
System.Threading.Thread.Sleep(15000);
}
Object o;
lock (m_CompileQueue)
{