stop a few more threads on exit
parent
928733efc9
commit
f3eb73926e
|
@ -82,6 +82,11 @@ namespace OpenSim.Framework.Monitoring
|
||||||
HandleControlCommand);
|
HandleControlCommand);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void Stop()
|
||||||
|
{
|
||||||
|
JobEngine.Stop();
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Start a new long-lived thread.
|
/// Start a new long-lived thread.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -131,7 +136,6 @@ namespace OpenSim.Framework.Monitoring
|
||||||
|
|
||||||
thread.Start();
|
thread.Start();
|
||||||
|
|
||||||
|
|
||||||
return thread;
|
return thread;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -116,6 +116,8 @@ namespace OpenSim.Framework.Servers
|
||||||
|
|
||||||
Thread.Sleep(5000);
|
Thread.Sleep(5000);
|
||||||
|
|
||||||
|
WorkManager.Stop();
|
||||||
|
|
||||||
RemovePIDFile();
|
RemovePIDFile();
|
||||||
m_log.Info("[SHUTDOWN]: Shutdown processing on main thread complete. Exiting...");
|
m_log.Info("[SHUTDOWN]: Shutdown processing on main thread complete. Exiting...");
|
||||||
|
|
||||||
|
|
|
@ -197,20 +197,20 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
~AsyncCommandManager()
|
~AsyncCommandManager()
|
||||||
{
|
{
|
||||||
// Shut down thread
|
// Shut down thread
|
||||||
// try
|
try
|
||||||
// {
|
{
|
||||||
// if (cmdHandlerThread != null)
|
if (cmdHandlerThread != null)
|
||||||
// {
|
{
|
||||||
// if (cmdHandlerThread.IsAlive == true)
|
if (cmdHandlerThread.IsAlive == true)
|
||||||
// {
|
{
|
||||||
// cmdHandlerThread.Abort();
|
cmdHandlerThread.Abort();
|
||||||
// //cmdHandlerThread.Join();
|
//cmdHandlerThread.Join();
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// catch
|
catch
|
||||||
// {
|
{
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -387,8 +387,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public static Object[] GetSerializationData(IScriptEngine engine, UUID itemID)
|
public static Object[] GetSerializationData(IScriptEngine engine, UUID itemID)
|
||||||
{
|
{
|
||||||
List<Object> data = new List<Object>();
|
List<Object> data = new List<Object>();
|
||||||
|
|
Loading…
Reference in New Issue