mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 05:45:37 +08:00
More locks, try's and disable some things in SEC - maybe it won't crash now. :)
This commit is contained in:
@@ -72,13 +72,19 @@ namespace OpenSim.ApplicationPlugins.ScriptEngine
|
||||
{
|
||||
// We have found an type which is derived from ProdiverBase, add it to provider list
|
||||
m_log.InfoFormat("[ScriptEngine]: Adding component: {0}", componentType.Name);
|
||||
ComponentRegistry.providers.Add(componentType.Name, componentType);
|
||||
lock (ComponentRegistry.providers)
|
||||
{
|
||||
ComponentRegistry.providers.Add(componentType.Name, componentType);
|
||||
}
|
||||
}
|
||||
if (componentType.IsSubclassOf(typeof(RegionScriptEngineBase)))
|
||||
{
|
||||
// We have found an type which is derived from RegionScriptEngineBase, add it to engine list
|
||||
m_log.InfoFormat("[ScriptEngine]: Adding script engine: {0}", componentType.Name);
|
||||
ComponentRegistry.scriptEngines.Add(componentType.Name, componentType);
|
||||
lock (ComponentRegistry.scriptEngines)
|
||||
{
|
||||
ComponentRegistry.scriptEngines.Add(componentType.Name, componentType);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user