Stop the 15 second initial script compile wait if a script is being rezzed on a previously empty region.

0.7.4.1
Justin Clark-Casey (justincc) 2012-07-18 22:24:52 +01:00
parent d97e27434c
commit 1971b6bb4f
1 changed files with 4 additions and 0 deletions

View File

@ -644,6 +644,10 @@ namespace OpenSim.Region.ScriptEngine.XEngine
m_Scene.EventManager.OnGetScriptRunning += OnGetScriptRunning;
m_Scene.EventManager.OnShutdown += OnShutdown;
// If region ready has been triggered, then the region had no scripts to compile and completed its other
// work.
m_Scene.EventManager.OnRegionReady += s => m_InitialStartup = false;
if (m_SleepTime > 0)
{
m_ThreadPool.QueueWorkItem(new WorkItemCallback(this.DoMaintenance),