Fix up some locking issues in task inventory. Don't use any prior versions in production!

avinationmerge
Melanie 2010-12-22 13:45:21 +01:00
parent cf37b3b943
commit 32cc569b00
1 changed files with 2 additions and 0 deletions

View File

@ -959,6 +959,7 @@ namespace OpenSim.Region.Framework.Scenes
if (m_inventorySerial == 0) // No inventory if (m_inventorySerial == 0) // No inventory
{ {
client.SendTaskInventory(m_part.UUID, 0, new byte[0]); client.SendTaskInventory(m_part.UUID, 0, new byte[0]);
Items.LockItemsForRead(false);
return; return;
} }
@ -971,6 +972,7 @@ namespace OpenSim.Region.Framework.Scenes
{ {
xferManager.AddNewFile(m_inventoryFileName, xferManager.AddNewFile(m_inventoryFileName,
m_inventoryFileData); m_inventoryFileData);
Items.LockItemsForRead(false);
return; return;
} }
} }