diff options
author | Justin Clark-Casey (justincc) | 2011-08-22 01:43:34 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-08-22 01:43:34 +0100 |
commit | 94a8ab80c844274de4a3cc11b9be9f25e786c77e (patch) | |
tree | cd611eec995c354c0404e5c848ce2316e383e131 /OpenSim | |
parent | minor: Add explanative text for the new currency parameter. Convert some tab... (diff) | |
download | opensim-SC-94a8ab80c844274de4a3cc11b9be9f25e786c77e.zip opensim-SC-94a8ab80c844274de4a3cc11b9be9f25e786c77e.tar.gz opensim-SC-94a8ab80c844274de4a3cc11b9be9f25e786c77e.tar.bz2 opensim-SC-94a8ab80c844274de4a3cc11b9be9f25e786c77e.tar.xz |
improve locking of m_rpcHandlers in BaseHttpServer
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs index cb1117a..85fb364 100644 --- a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs +++ b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs | |||
@@ -196,7 +196,8 @@ namespace OpenSim.Framework.Servers.HttpServer | |||
196 | 196 | ||
197 | public List<string> GetXmlRpcHandlerKeys() | 197 | public List<string> GetXmlRpcHandlerKeys() |
198 | { | 198 | { |
199 | return new List<string>(m_rpcHandlers.Keys); | 199 | lock (m_rpcHandlers) |
200 | return new List<string>(m_rpcHandlers.Keys); | ||
200 | } | 201 | } |
201 | 202 | ||
202 | public bool AddHTTPHandler(string methodName, GenericHTTPMethod handler) | 203 | public bool AddHTTPHandler(string methodName, GenericHTTPMethod handler) |