mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user