* Code to make MRM debugging easier.
parent
93d54d7652
commit
c534d7f614
|
@ -142,7 +142,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
|
|||
m_scene.Broadcast(delegate(IClientAPI user)
|
||||
{
|
||||
user.SendAlertMessage(
|
||||
"MiniRegionModule Compilation and Initialisation failed: " + e);
|
||||
"Compile error while building MRM script, check OpenSim console for more information.");
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -256,6 +256,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
|
|||
}
|
||||
|
||||
libraries.Add("OpenSim.Region.OptionalModules.dll");
|
||||
libraries.Add("OpenMetaverseTypes.dll");
|
||||
libraries.Add("log4net.dll");
|
||||
|
||||
foreach (string library in libraries)
|
||||
|
|
|
@ -28,7 +28,9 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using log4net;
|
||||
using OpenSim.Region.OptionalModules.Scripting.Minimodule.Interfaces;
|
||||
|
||||
namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
|
||||
|
@ -54,8 +56,10 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
|
|||
while (m_threads.Count > 0 && i < count)
|
||||
{
|
||||
i++;
|
||||
|
||||
bool running = m_threads[i%m_threads.Count].MoveNext();
|
||||
|
||||
|
||||
if (!running)
|
||||
m_threads.Remove(m_threads[i%m_threads.Count]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue