* 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>
|
/// <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)
|
||||||
|
|
Loading…
Reference in New Issue