Moved some code up to AddRegion, so that other modules that depend on it don't crash. This code needs to be removed as soon as user services is refactored.
parent
fe4109a5b0
commit
cd321ec4d2
|
@ -154,6 +154,12 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid
|
||||||
|
|
||||||
((ISharedRegionModule)m_GridServiceConnector).AddRegion(scene);
|
((ISharedRegionModule)m_GridServiceConnector).AddRegion(scene);
|
||||||
|
|
||||||
|
// Yikes!! Remove this as soon as user services get refactored
|
||||||
|
LocalAssetServerURI = scene.CommsManager.NetworkServersInfo.UserURL;
|
||||||
|
LocalInventoryServerURI = scene.CommsManager.NetworkServersInfo.InventoryURL;
|
||||||
|
LocalUserServerURI = scene.CommsManager.NetworkServersInfo.UserURL;
|
||||||
|
HGNetworkServersInfo.Init(LocalAssetServerURI, LocalInventoryServerURI, LocalUserServerURI);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void RemoveRegion(Scene scene)
|
public void RemoveRegion(Scene scene)
|
||||||
|
@ -173,9 +179,6 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid
|
||||||
if (!m_Initialized)
|
if (!m_Initialized)
|
||||||
{
|
{
|
||||||
m_aScene = scene;
|
m_aScene = scene;
|
||||||
LocalAssetServerURI = m_aScene.CommsManager.NetworkServersInfo.UserURL;
|
|
||||||
LocalInventoryServerURI = m_aScene.CommsManager.NetworkServersInfo.InventoryURL;
|
|
||||||
LocalUserServerURI = m_aScene.CommsManager.NetworkServersInfo.UserURL;
|
|
||||||
|
|
||||||
m_HypergridServiceConnector = new HypergridServiceConnector(scene.AssetService);
|
m_HypergridServiceConnector = new HypergridServiceConnector(scene.AssetService);
|
||||||
|
|
||||||
|
@ -189,9 +192,6 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid
|
||||||
MainConsole.Instance.Commands.AddCommand("HGGridServicesConnector", false, "link-mapping", "link-mapping [<x> <y>] <cr>",
|
MainConsole.Instance.Commands.AddCommand("HGGridServicesConnector", false, "link-mapping", "link-mapping [<x> <y>] <cr>",
|
||||||
"Set local coordinate to map HG regions to", hgCommands.RunCommand);
|
"Set local coordinate to map HG regions to", hgCommands.RunCommand);
|
||||||
|
|
||||||
// Yikes!! Remove this as soon as user services get refactored
|
|
||||||
HGNetworkServersInfo.Init(LocalAssetServerURI, LocalInventoryServerURI, LocalUserServerURI);
|
|
||||||
|
|
||||||
m_Initialized = true;
|
m_Initialized = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue