mirror of
https://github.com/opensim/opensim.git
synced 2026-09-01 10:46:08 +08:00
Next OSG test. Cowardly refuse to save the state of badly behaved scripts, instead of forcing the issue.
This commit is contained in:
@@ -541,7 +541,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
|
||||
m_CurrentResult = null;
|
||||
}
|
||||
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public void SetState(string state)
|
||||
@@ -991,7 +991,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
|
||||
public string GetXMLState()
|
||||
{
|
||||
bool run = Running;
|
||||
Stop(100);
|
||||
bool stopped = Stop(100);
|
||||
Running = run;
|
||||
|
||||
// We should not be doing this, but since we are about to
|
||||
@@ -1002,6 +1002,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
|
||||
|
||||
// Force an update of the in-memory plugin data
|
||||
//
|
||||
if (!stopped)
|
||||
return String.Empty;
|
||||
|
||||
PluginData = AsyncCommandManager.GetSerializationData(m_Engine, m_ItemID);
|
||||
|
||||
return ScriptSerializer.Serialize(this);
|
||||
|
||||
Reference in New Issue
Block a user