* Fix for recent thread patch - IsAlive apparently is not as reliable as ThreadState.
parent
c2f3ff872d
commit
13b089636d
|
@ -858,10 +858,11 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
if (m_updateEntitiesThread == null)
|
if (m_updateEntitiesThread == null)
|
||||||
{
|
{
|
||||||
m_updateEntitiesThread = new Thread(m_sceneGraph.UpdateEntities);
|
m_updateEntitiesThread = new Thread(m_sceneGraph.UpdateEntities);
|
||||||
|
|
||||||
ThreadTracker.Add(m_updateEntitiesThread);
|
ThreadTracker.Add(m_updateEntitiesThread);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!m_updateEntitiesThread.IsAlive)
|
if(m_updateEntitiesThread.ThreadState == ThreadState.Stopped)
|
||||||
m_updateEntitiesThread.Start();
|
m_updateEntitiesThread.Start();
|
||||||
|
|
||||||
//m_sceneGraph.UpdateEntities();
|
//m_sceneGraph.UpdateEntities();
|
||||||
|
|
Loading…
Reference in New Issue