mirror of
https://github.com/opensim/opensim.git
synced 2026-05-15 03:15:41 +08:00
Yengine actually loose the bas state file
This commit is contained in:
@@ -188,7 +188,7 @@ namespace OpenSim.Region.ScriptEngine.Yengine
|
||||
// Use the same object code for identical source code
|
||||
// regardless of asset ID, so we don't care if they
|
||||
// copy scripts or not.
|
||||
byte[] scbytes = System.Text.Encoding.UTF8.GetBytes(m_SourceCode + migrationVersion.ToString());
|
||||
byte[] scbytes = System.Text.Encoding.UTF8.GetBytes(m_SourceCode);
|
||||
StringBuilder sb = new StringBuilder((256 + 5) / 6);
|
||||
using (System.Security.Cryptography.SHA256 sha = System.Security.Cryptography.SHA256.Create())
|
||||
ByteArrayToSixbitStr(sb, sha.ComputeHash(scbytes));
|
||||
@@ -395,6 +395,8 @@ namespace OpenSim.Region.ScriptEngine.Yengine
|
||||
}
|
||||
catch
|
||||
{
|
||||
File.Delete(m_StateFileName);
|
||||
|
||||
m_Running = true; // event processing is enabled
|
||||
eventCode = ScriptEventCode.None; // not processing any event
|
||||
|
||||
|
||||
Reference in New Issue
Block a user