Stop the 15 second initial script compile wait if a script is being rezzed on a previously empty region.
parent
d97e27434c
commit
1971b6bb4f
|
@ -644,6 +644,10 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||||
m_Scene.EventManager.OnGetScriptRunning += OnGetScriptRunning;
|
m_Scene.EventManager.OnGetScriptRunning += OnGetScriptRunning;
|
||||||
m_Scene.EventManager.OnShutdown += OnShutdown;
|
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)
|
if (m_SleepTime > 0)
|
||||||
{
|
{
|
||||||
m_ThreadPool.QueueWorkItem(new WorkItemCallback(this.DoMaintenance),
|
m_ThreadPool.QueueWorkItem(new WorkItemCallback(this.DoMaintenance),
|
||||||
|
|
Loading…
Reference in New Issue