aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/ApplicationPlugins/Rest/Inventory/RestHandler.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/ApplicationPlugins/Rest/Inventory/RestHandler.cs')
-rw-r--r--OpenSim/ApplicationPlugins/Rest/Inventory/RestHandler.cs30
1 files changed, 13 insertions, 17 deletions
diff --git a/OpenSim/ApplicationPlugins/Rest/Inventory/RestHandler.cs b/OpenSim/ApplicationPlugins/Rest/Inventory/RestHandler.cs
index 072bd6f..cb88695 100644
--- a/OpenSim/ApplicationPlugins/Rest/Inventory/RestHandler.cs
+++ b/OpenSim/ApplicationPlugins/Rest/Inventory/RestHandler.cs
@@ -312,16 +312,14 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory
312 // Now that everything is setup we can proceed to 312 // Now that everything is setup we can proceed to
313 // add THIS agent to the HTTP server's handler list 313 // add THIS agent to the HTTP server's handler list
314 314
315 // FIXME: If this code is ever to be re-enabled (most of it is disabled already) then this will 315 if (!AddAgentHandler(Rest.Name,this))
316 // have to be handled through the AddHttpHandler interface. 316 {
317// if (!AddAgentHandler(Rest.Name,this)) 317 Rest.Log.ErrorFormat("{0} Unable to activate handler interface", MsgId);
318// { 318 foreach (IRest handler in handlers)
319// Rest.Log.ErrorFormat("{0} Unable to activate handler interface", MsgId); 319 {
320// foreach (IRest handler in handlers) 320 handler.Close();
321// { 321 }
322// handler.Close(); 322 }
323// }
324// }
325 323
326 } 324 }
327 catch (Exception e) 325 catch (Exception e)
@@ -344,13 +342,11 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory
344 { 342 {
345 Rest.Log.InfoFormat("{0} Plugin is terminating", MsgId); 343 Rest.Log.InfoFormat("{0} Plugin is terminating", MsgId);
346 344
347 // FIXME: If this code is ever to be re-enabled (most of it is disabled already) then this will 345 try
348 // have to be handled through the AddHttpHandler interface. 346 {
349// try 347 RemoveAgentHandler(Rest.Name, this);
350// { 348 }
351// RemoveAgentHandler(Rest.Name, this); 349 catch (KeyNotFoundException){}
352// }
353// catch (KeyNotFoundException){}
354 350
355 foreach (IRest handler in handlers) 351 foreach (IRest handler in handlers)
356 { 352 {