mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 08:06:27 +08:00
* Code to make MRM debugging easier.
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user