Make XEngine.SaveAllState() actually do this instead of script maintenance

0.8.1-post-fixes
Justin Clark-Casey (justincc) 2015-01-17 00:05:13 +00:00
parent 0eb268e265
commit 2995868176
1 changed files with 8 additions and 8 deletions

View File

@ -867,6 +867,14 @@ namespace OpenSim.Region.ScriptEngine.XEngine
public void SaveAllState()
{
DoBackup(new object[] { 0 });
}
public object DoMaintenance(object p)
{
object[] parms = (object[])p;
int sleepTime = (int)parms[0];
foreach (IScriptInstance inst in m_Scripts.Values)
{
if (inst.EventTime() > m_EventLimit)
@ -876,14 +884,6 @@ namespace OpenSim.Region.ScriptEngine.XEngine
inst.Start();
}
}
}
public object DoMaintenance(object p)
{
object[] parms = (object[])p;
int sleepTime = (int)parms[0];
SaveAllState();
System.Threading.Thread.Sleep(sleepTime);