aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared
diff options
context:
space:
mode:
authorMelanie Thielker2009-02-19 05:16:25 +0000
committerMelanie Thielker2009-02-19 05:16:25 +0000
commit2478d38b85f902258efabfa47674d15f7db629db (patch)
treed73b015588ad20fe6f788b78fcf13b3bd29af9ea /OpenSim/Region/ScriptEngine/Shared
parentThank you, Snowdrop, for a patch that makes the callback ID parameter (diff)
downloadopensim-SC_OLD-2478d38b85f902258efabfa47674d15f7db629db.zip
opensim-SC_OLD-2478d38b85f902258efabfa47674d15f7db629db.tar.gz
opensim-SC_OLD-2478d38b85f902258efabfa47674d15f7db629db.tar.bz2
opensim-SC_OLD-2478d38b85f902258efabfa47674d15f7db629db.tar.xz
Attempt to fix a Windows only race in thread termination
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
index a9a2dbf..613c241 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
@@ -683,7 +683,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
683 if (m_SaveState) 683 if (m_SaveState)
684 { 684 {
685 // This will be the very first event we deliver 685 // This will be the very first event we deliver
686 // (state_entry) in defualt state 686 // (state_entry) in default state
687 // 687 //
688 688
689 SaveState(m_Assembly); 689 SaveState(m_Assembly);
@@ -942,6 +942,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
942 bool run = Running; 942 bool run = Running;
943 Stop(100); 943 Stop(100);
944 Running = run; 944 Running = run;
945
946 // We should not be doing this, but since we are about to
947 // dispose this, it really doesn't make a difference
948 // This is meant to work around a Windows only race
949 //
950 m_InEvent = false;
951
945 return ScriptSerializer.Serialize(this); 952 return ScriptSerializer.Serialize(this);
946 } 953 }
947 } 954 }