Bug fix in remote neighbour connector.
parent
9ad33546ca
commit
a0b68178b8
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue