Added locking in AccessModule to prevent possible errors when shutting down a simulator that has >1 region

0.8.0.3
Oren Hurvitz 2014-07-10 16:00:06 +03:00 committed by Justin Clark-Casey
parent e16403db80
commit 5229a3c51c
1 changed files with 7 additions and 3 deletions

View File

@ -91,13 +91,17 @@ namespace OpenSim.Region.CoreModules.World
public void AddRegion(Scene scene)
{
if (!m_SceneList.Contains(scene))
m_SceneList.Add(scene);
lock (m_SceneList)
{
if (!m_SceneList.Contains(scene))
m_SceneList.Add(scene);
}
}
public void RemoveRegion(Scene scene)
{
m_SceneList.Remove(scene);
lock (m_SceneList)
m_SceneList.Remove(scene);
}
public void RegionLoaded(Scene scene)