Bugfix, maybe it won't crash during startup and crash somewhere else instead? :)

ThreadPoolClientBranch
Tedd Hansen 2008-02-01 23:44:02 +00:00
parent d02a90823f
commit 4715453159
1 changed files with 2 additions and 1 deletions

View File

@ -107,7 +107,8 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
public ScriptManager(ScriptEngineBase.ScriptEngine scriptEngine)
{
m_scriptEngine = scriptEngine;
ReadConfig();
// We should not read config during startup as ScriptEngine may not have config object yet
AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(CurrentDomain_AssemblyResolve);
scriptLoadUnloadThread = new Thread(ScriptLoadUnloadThreadLoop);
scriptLoadUnloadThread.Name = "ScriptLoadUnloadThread";