aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
diff options
context:
space:
mode:
authorCasperW2009-12-06 17:23:07 +0100
committerCasperW2009-12-06 17:23:07 +0100
commit172e2f4e7609c278d02ad83ca207fd79624db587 (patch)
tree37c6d737e3fb8b3611efd4fa5dbaf38572128e51 /OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
parentChange EntityManager to use RWlocks (diff)
downloadopensim-SC_OLD-172e2f4e7609c278d02ad83ca207fd79624db587.zip
opensim-SC_OLD-172e2f4e7609c278d02ad83ca207fd79624db587.tar.gz
opensim-SC_OLD-172e2f4e7609c278d02ad83ca207fd79624db587.tar.bz2
opensim-SC_OLD-172e2f4e7609c278d02ad83ca207fd79624db587.tar.xz
Fix to existing ReaderWriterLockSlim implementations
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
index 4780ff2..b57d912 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
@@ -320,17 +320,18 @@ namespace OpenSim.Region.Framework.Scenes
320 { 320 {
321 if (m_items.ContainsKey(itemId)) 321 if (m_items.ContainsKey(itemId))
322 { 322 {
323 m_items.LockItemsForRead(false);
323 CreateScriptInstance(m_items[itemId], startParam, postOnRez, engine, stateSource); 324 CreateScriptInstance(m_items[itemId], startParam, postOnRez, engine, stateSource);
324 } 325 }
325 else 326 else
326 { 327 {
328 m_items.LockItemsForRead(false);
327 m_log.ErrorFormat( 329 m_log.ErrorFormat(
328 "[PRIM INVENTORY]: " + 330 "[PRIM INVENTORY]: " +
329 "Couldn't start script with ID {0} since it couldn't be found for prim {1}, {2} at {3} in {4}", 331 "Couldn't start script with ID {0} since it couldn't be found for prim {1}, {2} at {3} in {4}",
330 itemId, m_part.Name, m_part.UUID, 332 itemId, m_part.Name, m_part.UUID,
331 m_part.AbsolutePosition, m_part.ParentGroup.Scene.RegionInfo.RegionName); 333 m_part.AbsolutePosition, m_part.ParentGroup.Scene.RegionInfo.RegionName);
332 } 334 }
333 m_items.LockItemsForRead(false);
334 } 335 }
335 else 336 else
336 { 337 {