aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Servers
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Servers')
-rw-r--r--OpenSim/Framework/Servers/BaseHttpServer.cs10
1 files changed, 2 insertions, 8 deletions
diff --git a/OpenSim/Framework/Servers/BaseHttpServer.cs b/OpenSim/Framework/Servers/BaseHttpServer.cs
index 72c9ca1..181eb92 100644
--- a/OpenSim/Framework/Servers/BaseHttpServer.cs
+++ b/OpenSim/Framework/Servers/BaseHttpServer.cs
@@ -104,15 +104,9 @@ namespace OpenSim.Framework.Servers
104 { 104 {
105 lock (m_rpcHandlers) 105 lock (m_rpcHandlers)
106 { 106 {
107 if (!m_rpcHandlers.ContainsKey(method)) 107 m_rpcHandlers[method] = handler;
108 { 108 return true;
109 m_rpcHandlers.Add(method, handler);
110 return true;
111 }
112 } 109 }
113
114 //must already have a handler for that path so return false
115 return false;
116 } 110 }
117 111
118 public bool AddHTTPHandler(string method, GenericHTTPMethod handler) 112 public bool AddHTTPHandler(string method, GenericHTTPMethod handler)