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