aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/YEngine/XMRInstCtor.cs
diff options
context:
space:
mode:
authorUbitUmarov2018-12-10 23:45:54 +0000
committerUbitUmarov2018-12-10 23:45:54 +0000
commit11b467cabf3a63a15d9c021bb7c7fb72de752c54 (patch)
treeccd1f0afcb1d9b610a9c13cf58b31711a4ab0e41 /OpenSim/Region/ScriptEngine/YEngine/XMRInstCtor.cs
parentmantis 8419: TakeCopy now sends to objects; Take to a child of trash or losta... (diff)
downloadopensim-SC-11b467cabf3a63a15d9c021bb7c7fb72de752c54.zip
opensim-SC-11b467cabf3a63a15d9c021bb7c7fb72de752c54.tar.gz
opensim-SC-11b467cabf3a63a15d9c021bb7c7fb72de752c54.tar.bz2
opensim-SC-11b467cabf3a63a15d9c021bb7c7fb72de752c54.tar.xz
Yengine actually loose the bas state file
Diffstat (limited to 'OpenSim/Region/ScriptEngine/YEngine/XMRInstCtor.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/YEngine/XMRInstCtor.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/YEngine/XMRInstCtor.cs b/OpenSim/Region/ScriptEngine/YEngine/XMRInstCtor.cs
index d48e81b..fd60946 100644
--- a/OpenSim/Region/ScriptEngine/YEngine/XMRInstCtor.cs
+++ b/OpenSim/Region/ScriptEngine/YEngine/XMRInstCtor.cs
@@ -188,7 +188,7 @@ namespace OpenSim.Region.ScriptEngine.Yengine
188 // Use the same object code for identical source code 188 // Use the same object code for identical source code
189 // regardless of asset ID, so we don't care if they 189 // regardless of asset ID, so we don't care if they
190 // copy scripts or not. 190 // copy scripts or not.
191 byte[] scbytes = System.Text.Encoding.UTF8.GetBytes(m_SourceCode + migrationVersion.ToString()); 191 byte[] scbytes = System.Text.Encoding.UTF8.GetBytes(m_SourceCode);
192 StringBuilder sb = new StringBuilder((256 + 5) / 6); 192 StringBuilder sb = new StringBuilder((256 + 5) / 6);
193 using (System.Security.Cryptography.SHA256 sha = System.Security.Cryptography.SHA256.Create()) 193 using (System.Security.Cryptography.SHA256 sha = System.Security.Cryptography.SHA256.Create())
194 ByteArrayToSixbitStr(sb, sha.ComputeHash(scbytes)); 194 ByteArrayToSixbitStr(sb, sha.ComputeHash(scbytes));
@@ -395,6 +395,8 @@ namespace OpenSim.Region.ScriptEngine.Yengine
395 } 395 }
396 catch 396 catch
397 { 397 {
398 File.Delete(m_StateFileName);
399
398 m_Running = true; // event processing is enabled 400 m_Running = true; // event processing is enabled
399 eventCode = ScriptEventCode.None; // not processing any event 401 eventCode = ScriptEventCode.None; // not processing any event
400 402