mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +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:
@@ -209,12 +209,15 @@ namespace OpenSim.Region.ScriptEngine.Shared
|
||||
else
|
||||
Type = 0x02; // Passive
|
||||
|
||||
foreach (SceneObjectPart p in part.ParentGroup.Children.Values)
|
||||
lock (part.ParentGroup.Children)
|
||||
{
|
||||
if (p.Inventory.ContainsScripts())
|
||||
foreach (SceneObjectPart p in part.ParentGroup.Children.Values)
|
||||
{
|
||||
Type |= 0x08; // Scripted
|
||||
break;
|
||||
if (p.Inventory.ContainsScripts())
|
||||
{
|
||||
Type |= 0x08; // Scripted
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user