mirror of
https://github.com/opensim/opensim.git
synced 2026-07-28 03:46:04 +08:00
Putting the lock back in TryGetValue.
This commit is contained in:
@@ -224,16 +224,16 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
|
||||
////return success;
|
||||
|
||||
//lock (m_sync)
|
||||
// return Dictionary1.TryGetValue(key, out value);
|
||||
lock (m_sync)
|
||||
return Dictionary1.TryGetValue(key, out value);
|
||||
|
||||
try
|
||||
{
|
||||
return Dictionary1.TryGetValue(key, out value);
|
||||
}
|
||||
catch { }
|
||||
value = null;
|
||||
return false;
|
||||
//try
|
||||
//{
|
||||
// return Dictionary1.TryGetValue(key, out value);
|
||||
//}
|
||||
//catch { }
|
||||
//value = null;
|
||||
//return false;
|
||||
}
|
||||
|
||||
public bool TryGetValue(IPEndPoint key, out LLUDPClient value)
|
||||
|
||||
Reference in New Issue
Block a user