mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
Improve consistency of locking for SOG.m_parts in order to avoid race conditions in linking and unlinking
This commit is contained in:
@@ -601,7 +601,10 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
rootPart.Name = item.Name;
|
||||
rootPart.Description = item.Description;
|
||||
|
||||
List<SceneObjectPart> partList = new List<SceneObjectPart>(group.Children.Values);
|
||||
List<SceneObjectPart> partList = null;
|
||||
|
||||
lock (group.Children)
|
||||
partList = new List<SceneObjectPart>(group.Children.Values);
|
||||
|
||||
group.SetGroup(m_part.GroupID, null);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user