mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
Added locking in AccessModule to prevent possible errors when shutting down a simulator that has >1 region
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user