Make XEngine.SaveAllState() actually do this instead of script maintenance
parent
0eb268e265
commit
2995868176
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue