Fixes an exception that is seen on regions running XEngine, where DNE

tries to stop a script that is not run by it
0.6.0-stable
Melanie Thielker 2008-09-25 14:20:31 +00:00
parent 4004172106
commit f6650d33cc
1 changed files with 3 additions and 8 deletions

View File

@ -169,18 +169,13 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
public override void _StopScript(uint localID, UUID itemID) public override void _StopScript(uint localID, UUID itemID)
{ {
// Stop script
//#if DEBUG
// m_scriptEngine.Log.Debug("[" + m_scriptEngine.ScriptEngineName + "]: Stop script localID: " + localID + " LLUID: " + itemID.ToString());
//#endif
// Stop long command on script
AsyncCommandManager.RemoveScript(m_scriptEngine, localID, itemID);
IScript LSLBC = GetScript(localID, itemID); IScript LSLBC = GetScript(localID, itemID);
if (LSLBC == null) if (LSLBC == null)
return; return;
// Stop long command on script
AsyncCommandManager.RemoveScript(m_scriptEngine, localID, itemID);
// TEMP: First serialize it // TEMP: First serialize it
//GetSerializedScript(localID, itemID); //GetSerializedScript(localID, itemID);