mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
Wait for OnOarFileSaved event callback before executing script
We want to execute the (optional) user script after I/O is done on the oar. I wasn't aware that ArchiveRegion is asynchronous -- now I am. Should fully resolve comment 0018290 at http://opensimulator.org/mantis/view.php?id=5440
This commit is contained in:
@@ -26,11 +26,17 @@
|
||||
/// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
///
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
namespace OpenSim.Region.OptionalModules.World.AutoBackup
|
||||
{
|
||||
/// AutoBackupModuleState: Auto-Backup state for one region (scene).
|
||||
public class AutoBackupModuleState
|
||||
{
|
||||
private Dictionary<Guid, string> m_liveRequests = null;
|
||||
|
||||
public AutoBackupModuleState()
|
||||
{
|
||||
this.Enabled = false;
|
||||
@@ -41,6 +47,14 @@ namespace OpenSim.Region.OptionalModules.World.AutoBackup
|
||||
this.Script = null;
|
||||
}
|
||||
|
||||
public Dictionary<Guid, string> LiveRequests
|
||||
{
|
||||
get {
|
||||
return this.m_liveRequests ??
|
||||
(this.m_liveRequests = new Dictionary<Guid, string>(1));
|
||||
}
|
||||
}
|
||||
|
||||
public bool Enabled
|
||||
{
|
||||
get;
|
||||
|
||||
Reference in New Issue
Block a user