Bug fix in remote neighbour connector.

0.6.6-post-fixes
diva 2009-06-14 16:26:14 +00:00
parent 9ad33546ca
commit a0b68178b8
3 changed files with 4 additions and 3 deletions

View File

@ -86,7 +86,6 @@ namespace OpenSim.Region.CoreModules.ServiceConnectors.Neighbour
public void AddRegion(Scene scene) public void AddRegion(Scene scene)
{ {
// Always add
m_Scenes.Add(scene); m_Scenes.Add(scene);
if (!m_Enabled) if (!m_Enabled)

View File

@ -113,13 +113,15 @@ namespace OpenSim.Region.CoreModules.ServiceConnectors.Neighbour
if (!m_Enabled) if (!m_Enabled)
return; return;
m_MapService = scene.CommsManager.GridService;
m_LocalService.AddRegion(scene);
scene.RegisterModuleInterface<INeighbourService>(this); scene.RegisterModuleInterface<INeighbourService>(this);
} }
public void RemoveRegion(Scene scene) public void RemoveRegion(Scene scene)
{ {
if (m_Enabled && m_Scenes.Contains(scene)) if (m_Enabled && m_Scenes.Contains(scene))
m_Scenes.Remove(scene); m_LocalService.RemoveRegion(scene);
} }
public void RegionLoaded(Scene scene) public void RegionLoaded(Scene scene)

View File

@ -49,7 +49,7 @@ namespace OpenSim.Services.Connectors
LogManager.GetLogger( LogManager.GetLogger(
MethodBase.GetCurrentMethod().DeclaringType); MethodBase.GetCurrentMethod().DeclaringType);
private IGridServices m_MapService = null; protected IGridServices m_MapService = null;
public NeighbourServicesConnector() public NeighbourServicesConnector()
{ {