When shutting down XEngine, log how many scripts are being shutdown so the user knows why they are waiting.
parent
3f70f54fa6
commit
b342fb9c0a
|
@ -678,7 +678,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
|
|||
m_CollisionInQueue = false;
|
||||
}
|
||||
|
||||
//m_log.DebugFormat("[XENGINE]: Processing event {0} for {1}", data.EventName, this);
|
||||
//m_log.DebugFormat("[XEngine]: Processing event {0} for {1}", data.EventName, this);
|
||||
|
||||
m_DetectParams = data.DetectParams;
|
||||
|
||||
|
|
|
@ -271,6 +271,9 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
|||
{
|
||||
lock (m_Scripts)
|
||||
{
|
||||
m_log.InfoFormat(
|
||||
"[XEngine]: Shutting down {0} scripts in {1}", m_Scripts.Count, m_Scene.RegionInfo.RegionName);
|
||||
|
||||
foreach (IScriptInstance instance in m_Scripts.Values)
|
||||
{
|
||||
// Force a final state save
|
||||
|
@ -1008,7 +1011,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
|||
|
||||
IScriptInstance instance = (ScriptInstance) parms;
|
||||
|
||||
//m_log.DebugFormat("[XENGINE]: Processing event for {0}", instance);
|
||||
//m_log.DebugFormat("[XEngine]: Processing event for {0}", instance);
|
||||
|
||||
return instance.EventProcessor();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue