Fix build break by replacing Items.LockItemsForWrite() with lock (Items) {}

viewer-2-initial-appearance
Justin Clark-Casey (justincc) 2010-09-17 01:21:28 +01:00
parent 5072429263
commit e3f1533705
1 changed files with 21 additions and 22 deletions

View File

@ -142,11 +142,10 @@ namespace OpenSim.Region.Framework.Scenes
public void ResetObjectID() public void ResetObjectID()
{ {
m_items.LockItemsForWrite(true); lock (Items)
{
if (Items.Count == 0) if (Items.Count == 0)
{ {
m_items.LockItemsForWrite(false);
return; return;
} }
@ -165,7 +164,7 @@ namespace OpenSim.Region.Framework.Scenes
item.ParentID = m_part.UUID; item.ParentID = m_part.UUID;
Items.Add(item.ItemID, item); Items.Add(item.ItemID, item);
} }
m_items.LockItemsForWrite(false); }
} }
/// <summary> /// <summary>