aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/AsyncCommandManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/AsyncCommandManager.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/AsyncCommandManager.cs28
1 files changed, 15 insertions, 13 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/AsyncCommandManager.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/AsyncCommandManager.cs
index e01d2e4..5eb3c5c 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/AsyncCommandManager.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/AsyncCommandManager.cs
@@ -284,22 +284,24 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
284 // Remove from: Timers 284 // Remove from: Timers
285 m_Timer[engine].UnSetTimerEvents(localID, itemID); 285 m_Timer[engine].UnSetTimerEvents(localID, itemID);
286 286
287 // Remove from: HttpRequest 287 if(engine.World != null)
288 IHttpRequestModule iHttpReq = engine.World.RequestModuleInterface<IHttpRequestModule>(); 288 {
289 if (iHttpReq != null) 289 // Remove from: HttpRequest
290 iHttpReq.StopHttpRequest(localID, itemID); 290 IHttpRequestModule iHttpReq = engine.World.RequestModuleInterface<IHttpRequestModule>();
291 if (iHttpReq != null)
292 iHttpReq.StopHttpRequest(localID, itemID);
291 293
292 IWorldComm comms = engine.World.RequestModuleInterface<IWorldComm>(); 294 IWorldComm comms = engine.World.RequestModuleInterface<IWorldComm>();
293 if (comms != null) 295 if (comms != null)
294 comms.DeleteListener(itemID); 296 comms.DeleteListener(itemID);
295 297
296 IXMLRPC xmlrpc = engine.World.RequestModuleInterface<IXMLRPC>(); 298 IXMLRPC xmlrpc = engine.World.RequestModuleInterface<IXMLRPC>();
297 if (xmlrpc != null) 299 if (xmlrpc != null)
298 { 300 {
299 xmlrpc.DeleteChannels(itemID); 301 xmlrpc.DeleteChannels(itemID);
300 xmlrpc.CancelSRDRequests(itemID); 302 xmlrpc.CancelSRDRequests(itemID);
303 }
301 } 304 }
302
303 // Remove Sensors 305 // Remove Sensors
304 m_SensorRepeat[engine].UnSetSenseRepeaterEvents(localID, itemID); 306 m_SensorRepeat[engine].UnSetSenseRepeaterEvents(localID, itemID);
305 } 307 }