From 59da146e9dd678aea2e0bd3e16ef178c183754a0 Mon Sep 17 00:00:00 2001
From: Oren Hurvitz
Date: Fri, 7 Aug 2015 16:35:32 +0300
Subject: When the user stops a script, have it remain stopped
Previously the script state was never saved for a !Running script, so upon region restart the script would be Running again.
The use of the 'StayStopped' flag is needed because all scripts are automatically stopped when the region shuts down, but in that case we shouldn't save in their state that they're !Running.
---
OpenSim/Region/ScriptEngine/Interfaces/IScriptInstance.cs | 5 +++++
1 file changed, 5 insertions(+)
(limited to 'OpenSim/Region/ScriptEngine/Interfaces/IScriptInstance.cs')
diff --git a/OpenSim/Region/ScriptEngine/Interfaces/IScriptInstance.cs b/OpenSim/Region/ScriptEngine/Interfaces/IScriptInstance.cs
index f695eba..16641f7 100644
--- a/OpenSim/Region/ScriptEngine/Interfaces/IScriptInstance.cs
+++ b/OpenSim/Region/ScriptEngine/Interfaces/IScriptInstance.cs
@@ -93,6 +93,11 @@ namespace OpenSim.Region.ScriptEngine.Interfaces
bool ShuttingDown { get; set; }
///
+ /// When stopping the script: should it remain stopped permanently (i.e., save !Running in its state)?
+ ///
+ bool StayStopped { get; set; }
+
+ ///
/// Script state
///
string State { get; set; }
--
cgit v1.1