* Lock remaining m_rpcHandlers use since these accesses are not guaranteed to be thread safe
parent
8ed9c3b8cd
commit
6db1f3c6a6
|
@ -607,7 +607,13 @@ namespace OpenSim.Framework.Servers
|
||||||
XmlRpcResponse xmlRpcResponse;
|
XmlRpcResponse xmlRpcResponse;
|
||||||
|
|
||||||
XmlRpcMethod method;
|
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]
|
xmlRprcRequest.Params.Add(request.Url); // Param[2]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue