Xengine patch to force a persistence save on script creation. This prevents

duplicate delivery of state_entry if a region is restarted just after
saving the script. Changes script state saves to no longer abort long-
running event handlers. Queues the save instead. Adds shutdown handler
to save script state on irderly shutdown
This commit is contained in:
Melanie Thielker
2008-09-07 22:01:25 +00:00
parent e3338bac20
commit 669f553400
3 changed files with 52 additions and 9 deletions

View File

@@ -56,9 +56,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
{
bool running = instance.Running;
if (running)
instance.Stop(50);
XmlDocument xmldoc = new XmlDocument();
XmlNode xmlnode = xmldoc.CreateNode(XmlNodeType.XmlDeclaration,
@@ -182,9 +179,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
rootElement.AppendChild(plugins);
if (running)
instance.Start();
return xmldoc.InnerXml;
}