mirror of
https://github.com/opensim/opensim.git
synced 2026-07-03 17:35:40 +08:00
Attempt to fix a Windows only race in thread termination
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user