mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
Put guards on a bunch of exception-inducing code, as seen in logs from load test.
This commit is contained in:
@@ -553,7 +553,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
/// </param>
|
||||
public void StopScriptInstance(TaskInventoryItem item)
|
||||
{
|
||||
m_part.ParentGroup.Scene.EventManager.TriggerStopScript(m_part.LocalId, item.ItemID);
|
||||
if (m_part.ParentGroup.Scene != null)
|
||||
m_part.ParentGroup.Scene.EventManager.TriggerStopScript(m_part.LocalId, item.ItemID);
|
||||
|
||||
// At the moment, even stopped scripts are counted as active, which is probably wrong.
|
||||
// m_part.ParentGroup.AddActiveScriptCount(-1);
|
||||
|
||||
Reference in New Issue
Block a user