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)
|
public void AddRegion(Scene scene)
|
||||||
{
|
{
|
||||||
// Always add
|
|
||||||
m_Scenes.Add(scene);
|
m_Scenes.Add(scene);
|
||||||
|
|
||||||
if (!m_Enabled)
|
if (!m_Enabled)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue