diff options
author | Adam Frisby | 2008-09-14 04:13:15 +0000 |
---|---|---|
committer | Adam Frisby | 2008-09-14 04:13:15 +0000 |
commit | 3476dd56ea9a6b2e597d2a4e8abf679ac0778681 (patch) | |
tree | 11ba00686669e656eca605e42e7e4dca70b8eb04 /OpenSim/Framework/Servers | |
parent | Thank you kindly, CMickeyb for a patch that: (diff) | |
download | opensim-SC_OLD-3476dd56ea9a6b2e597d2a4e8abf679ac0778681.zip opensim-SC_OLD-3476dd56ea9a6b2e597d2a4e8abf679ac0778681.tar.gz opensim-SC_OLD-3476dd56ea9a6b2e597d2a4e8abf679ac0778681.tar.bz2 opensim-SC_OLD-3476dd56ea9a6b2e597d2a4e8abf679ac0778681.tar.xz |
* Converted a number of methods within the login processes from private to protected.
* Made several methods virtual to allow derivative overrides.
* Minor cleanups.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Servers/BaseHttpServer.cs | 10 |
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) |