Fix build break by replacing Items.LockItemsForWrite() with lock (Items) {}
parent
5072429263
commit
e3f1533705
|
@ -142,11 +142,10 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
|
||||
public void ResetObjectID()
|
||||
{
|
||||
m_items.LockItemsForWrite(true);
|
||||
|
||||
lock (Items)
|
||||
{
|
||||
if (Items.Count == 0)
|
||||
{
|
||||
m_items.LockItemsForWrite(false);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -165,7 +164,7 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
item.ParentID = m_part.UUID;
|
||||
Items.Add(item.ItemID, item);
|
||||
}
|
||||
m_items.LockItemsForWrite(false);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Reference in New Issue