* Refactor: Remove locking from InnerScene.GetScenePresence()

0.6.0-stable
Justin Clarke Casey 2008-05-13 18:40:36 +00:00
parent 3025dafa92
commit 16621fb37f
1 changed files with 3 additions and 8 deletions

View File

@ -679,15 +679,10 @@ namespace OpenSim.Region.Environment.Scenes
/// <returns>null if the agent was not found</returns> /// <returns>null if the agent was not found</returns>
public ScenePresence GetScenePresence(LLUUID agentID) public ScenePresence GetScenePresence(LLUUID agentID)
{ {
lock (ScenePresences) ScenePresence sp;
{ ScenePresences.TryGetValue(agentID, out sp);
if (ScenePresences.ContainsKey(agentID))
{
return ScenePresences[agentID];
}
}
return null; return sp;
} }
private SceneObjectGroup GetGroupByPrim(uint localID) private SceneObjectGroup GetGroupByPrim(uint localID)