Putting the lock back in TryGetValue.

prioritization
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; ////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)