Putting the lock back in TryGetValue.
parent
a0dd9f4bb4
commit
51ea39199b
|
@ -224,16 +224,16 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
|
|
||||||
////return success;
|
////return success;
|
||||||
|
|
||||||
//lock (m_sync)
|
lock (m_sync)
|
||||||
// return Dictionary1.TryGetValue(key, out value);
|
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
return Dictionary1.TryGetValue(key, out value);
|
return Dictionary1.TryGetValue(key, out value);
|
||||||
}
|
|
||||||
catch { }
|
//try
|
||||||
value = null;
|
//{
|
||||||
return false;
|
// return Dictionary1.TryGetValue(key, out value);
|
||||||
|
//}
|
||||||
|
//catch { }
|
||||||
|
//value = null;
|
||||||
|
//return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool TryGetValue(IPEndPoint key, out LLUDPClient value)
|
public bool TryGetValue(IPEndPoint key, out LLUDPClient value)
|
||||||
|
|
Loading…
Reference in New Issue