diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/ApplicationPlugins/Rest/RestPlugin.cs | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/OpenSim/ApplicationPlugins/Rest/RestPlugin.cs b/OpenSim/ApplicationPlugins/Rest/RestPlugin.cs index a2425b5..eb16750 100644 --- a/OpenSim/ApplicationPlugins/Rest/RestPlugin.cs +++ b/OpenSim/ApplicationPlugins/Rest/RestPlugin.cs | |||
@@ -297,9 +297,7 @@ namespace OpenSim.ApplicationPlugins.Rest | |||
297 | { | 297 | { |
298 | if (!IsEnabled) return false; | 298 | if (!IsEnabled) return false; |
299 | _agents.Add(agentName, handler); | 299 | _agents.Add(agentName, handler); |
300 | // return _httpd.AddAgentHandler(agentName, handler); | 300 | return _httpd.AddAgentHandler(agentName, handler); |
301 | |||
302 | return false; | ||
303 | } | 301 | } |
304 | 302 | ||
305 | /// <summary> | 303 | /// <summary> |
@@ -318,7 +316,7 @@ namespace OpenSim.ApplicationPlugins.Rest | |||
318 | if (_agents[agentName] == handler) | 316 | if (_agents[agentName] == handler) |
319 | { | 317 | { |
320 | _agents.Remove(agentName); | 318 | _agents.Remove(agentName); |
321 | // return _httpd.RemoveAgentHandler(agentName, handler); | 319 | return _httpd.RemoveAgentHandler(agentName, handler); |
322 | } | 320 | } |
323 | return false; | 321 | return false; |
324 | } | 322 | } |
@@ -360,10 +358,10 @@ namespace OpenSim.ApplicationPlugins.Rest | |||
360 | _httpd.RemoveStreamHandler(h.HttpMethod, h.Path); | 358 | _httpd.RemoveStreamHandler(h.HttpMethod, h.Path); |
361 | } | 359 | } |
362 | _handlers = null; | 360 | _handlers = null; |
363 | // foreach (KeyValuePair<string, IHttpAgentHandler> h in _agents) | 361 | foreach (KeyValuePair<string, IHttpAgentHandler> h in _agents) |
364 | // { | 362 | { |
365 | // _httpd.RemoveAgentHandler(h.Key, h.Value); | 363 | _httpd.RemoveAgentHandler(h.Key, h.Value); |
366 | // } | 364 | } |
367 | _agents = null; | 365 | _agents = null; |
368 | } | 366 | } |
369 | 367 | ||