mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Bug fix in remote neighbour connector.
This commit is contained in:
@@ -86,7 +86,6 @@ namespace OpenSim.Region.CoreModules.ServiceConnectors.Neighbour
|
||||
|
||||
public void AddRegion(Scene scene)
|
||||
{
|
||||
// Always add
|
||||
m_Scenes.Add(scene);
|
||||
|
||||
if (!m_Enabled)
|
||||
|
||||
@@ -113,13 +113,15 @@ namespace OpenSim.Region.CoreModules.ServiceConnectors.Neighbour
|
||||
if (!m_Enabled)
|
||||
return;
|
||||
|
||||
m_MapService = scene.CommsManager.GridService;
|
||||
m_LocalService.AddRegion(scene);
|
||||
scene.RegisterModuleInterface<INeighbourService>(this);
|
||||
}
|
||||
|
||||
public void RemoveRegion(Scene scene)
|
||||
{
|
||||
if (m_Enabled && m_Scenes.Contains(scene))
|
||||
m_Scenes.Remove(scene);
|
||||
m_LocalService.RemoveRegion(scene);
|
||||
}
|
||||
|
||||
public void RegionLoaded(Scene scene)
|
||||
|
||||
@@ -49,7 +49,7 @@ namespace OpenSim.Services.Connectors
|
||||
LogManager.GetLogger(
|
||||
MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
private IGridServices m_MapService = null;
|
||||
protected IGridServices m_MapService = null;
|
||||
|
||||
public NeighbourServicesConnector()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user