* Lock remaining m_rpcHandlers use since these accesses are not guaranteed to be thread safe
parent
8ed9c3b8cd
commit
6db1f3c6a6
|
@ -605,9 +605,15 @@ namespace OpenSim.Framework.Servers
|
||||||
{
|
{
|
||||||
xmlRprcRequest.Params.Add(request.RemoteIPEndPoint); // Param[1]
|
xmlRprcRequest.Params.Add(request.RemoteIPEndPoint); // Param[1]
|
||||||
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