mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
XMLRPCModule now actually aborts the worker thread when requested
This commit is contained in:
@@ -658,7 +658,7 @@ namespace OpenSim.Region.CoreModules.Scripting.XMLRPC
|
||||
public void Process()
|
||||
{
|
||||
_finished = false;
|
||||
WorkManager.StartThread(SendRequest, "HttpRequestThread", ThreadPriority.BelowNormal, true, false);
|
||||
httpThread = WorkManager.StartThread(SendRequest, "HttpRequestThread", ThreadPriority.BelowNormal, true, false);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -738,7 +738,11 @@ namespace OpenSim.Region.CoreModules.Scripting.XMLRPC
|
||||
{
|
||||
try
|
||||
{
|
||||
httpThread.Abort();
|
||||
if (httpThread != null)
|
||||
{
|
||||
Watchdog.AbortThread(httpThread.ManagedThreadId);
|
||||
httpThread = null;
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user