remove redundant code
parent
640f3f3074
commit
51ec2d83ac
|
@ -505,8 +505,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
private void CreateScriptInstanceInternal(UUID itemId, int startParam, bool postOnRez, string engine, int stateSource)
|
private void CreateScriptInstanceInternal(UUID itemId, int startParam, bool postOnRez, string engine, int stateSource)
|
||||||
{
|
{
|
||||||
m_items.LockItemsForRead(true);
|
m_items.LockItemsForRead(true);
|
||||||
if (m_items.ContainsKey(itemId))
|
|
||||||
{
|
|
||||||
if (m_items.ContainsKey(itemId))
|
if (m_items.ContainsKey(itemId))
|
||||||
{
|
{
|
||||||
m_items.LockItemsForRead(false);
|
m_items.LockItemsForRead(false);
|
||||||
|
@ -523,18 +522,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
"Couldn't start script with ID {0} since it {1}", itemId, msg);
|
"Couldn't start script with ID {0} since it {1}", itemId, msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
m_items.LockItemsForRead(false);
|
|
||||||
string msg = String.Format("couldn't be found for prim {0}, {1}", m_part.Name, m_part.UUID);
|
|
||||||
StoreScriptError(itemId, msg);
|
|
||||||
m_log.ErrorFormat(
|
|
||||||
"[PRIM INVENTORY]: Couldn't start script with ID {0} since it couldn't be found for prim {1}, {2} at {3} in {4}",
|
|
||||||
itemId, m_part.Name, m_part.UUID,
|
|
||||||
m_part.AbsolutePosition, m_part.ParentGroup.Scene.RegionInfo.RegionName);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Start a script which is in this prim's inventory and return any compilation error messages.
|
/// Start a script which is in this prim's inventory and return any compilation error messages.
|
||||||
|
|
Loading…
Reference in New Issue