diff --git a/OpenSim/Framework/Servers/BaseHttpServer.cs b/OpenSim/Framework/Servers/BaseHttpServer.cs index e0cc697a70..d6f0630fc8 100644 --- a/OpenSim/Framework/Servers/BaseHttpServer.cs +++ b/OpenSim/Framework/Servers/BaseHttpServer.cs @@ -605,9 +605,15 @@ namespace OpenSim.Framework.Servers { xmlRprcRequest.Params.Add(request.RemoteIPEndPoint); // Param[1] XmlRpcResponse xmlRpcResponse; - + XmlRpcMethod method; - if (m_rpcHandlers.TryGetValue(methodName, out method)) + bool methodWasFound; + lock (m_rpcHandlers) + { + methodWasFound = m_rpcHandlers.TryGetValue(methodName, out method); + } + + if (methodWasFound) { xmlRprcRequest.Params.Add(request.Url); // Param[2]