Attempt to fix a Windows only race in thread termination

GenericGridServerConcept
Melanie Thielker 2009-02-19 05:16:25 +00:00
parent 863556f2cc
commit 2478d38b85
1 changed files with 8 additions and 1 deletions

View File

@ -683,7 +683,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
if (m_SaveState)
{
// This will be the very first event we deliver
// (state_entry) in defualt state
// (state_entry) in default state
//
SaveState(m_Assembly);
@ -942,6 +942,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
bool run = Running;
Stop(100);
Running = run;
// We should not be doing this, but since we are about to
// dispose this, it really doesn't make a difference
// This is meant to work around a Windows only race
//
m_InEvent = false;
return ScriptSerializer.Serialize(this);
}
}