mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Second pass at cleaning up thread safety in EntityManager and SceneGraph
This commit is contained in:
@@ -2091,16 +2091,9 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
/// <returns>null if a child part with the primID was not found</returns>
|
||||
public SceneObjectPart GetChildPart(UUID primID)
|
||||
{
|
||||
SceneObjectPart childPart = null;
|
||||
|
||||
SceneObjectPart childPart;
|
||||
lock (m_parts)
|
||||
{
|
||||
if (m_parts.ContainsKey(primID))
|
||||
{
|
||||
childPart = m_parts[primID];
|
||||
}
|
||||
}
|
||||
|
||||
m_parts.TryGetValue(primID, out childPart);
|
||||
return childPart;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user