Putting the lock back in TryGetValue.

This commit is contained in:
Diva Canto
2009-10-08 15:42:08 -07:00
parent a0dd9f4bb4
commit 51ea39199b
2 changed files with 349 additions and 349 deletions

View File

@@ -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)