* Refactor: Remove locking from InnerScene.GetScenePresence()
parent
3025dafa92
commit
16621fb37f
|
@ -679,15 +679,10 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
/// <returns>null if the agent was not found</returns>
|
||||
public ScenePresence GetScenePresence(LLUUID agentID)
|
||||
{
|
||||
lock (ScenePresences)
|
||||
{
|
||||
if (ScenePresences.ContainsKey(agentID))
|
||||
{
|
||||
return ScenePresences[agentID];
|
||||
}
|
||||
}
|
||||
ScenePresence sp;
|
||||
ScenePresences.TryGetValue(agentID, out sp);
|
||||
|
||||
return null;
|
||||
return sp;
|
||||
}
|
||||
|
||||
private SceneObjectGroup GetGroupByPrim(uint localID)
|
||||
|
|
Loading…
Reference in New Issue