Make XEngine.SaveAllState() actually do this instead of script maintenance
parent
d748c0896d
commit
979afbd748
|
@ -870,6 +870,14 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||||
|
|
||||||
public void SaveAllState()
|
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)
|
foreach (IScriptInstance inst in m_Scripts.Values)
|
||||||
{
|
{
|
||||||
if (inst.EventTime() > m_EventLimit)
|
if (inst.EventTime() > m_EventLimit)
|
||||||
|
@ -879,14 +887,6 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||||
inst.Start();
|
inst.Start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public object DoMaintenance(object p)
|
|
||||||
{
|
|
||||||
object[] parms = (object[])p;
|
|
||||||
int sleepTime = (int)parms[0];
|
|
||||||
|
|
||||||
SaveAllState();
|
|
||||||
|
|
||||||
System.Threading.Thread.Sleep(sleepTime);
|
System.Threading.Thread.Sleep(sleepTime);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue