From 149cb8dcbcb78a60d972d67ef7f32a84cf79ac49 Mon Sep 17 00:00:00 2001 From: Oren Hurvitz Date: Fri, 31 Jul 2015 18:13:23 +0300 Subject: XMLRPCModule now actually aborts the worker thread when requested --- OpenSim/Region/CoreModules/Scripting/XMLRPC/XMLRPCModule.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/CoreModules/Scripting/XMLRPC') diff --git a/OpenSim/Region/CoreModules/Scripting/XMLRPC/XMLRPCModule.cs b/OpenSim/Region/CoreModules/Scripting/XMLRPC/XMLRPCModule.cs index af3700b..87f4277 100644 --- a/OpenSim/Region/CoreModules/Scripting/XMLRPC/XMLRPCModule.cs +++ b/OpenSim/Region/CoreModules/Scripting/XMLRPC/XMLRPCModule.cs @@ -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) { -- cgit v1.1