From 4254733e8abd6184b2b981158882bedc7c48b26a Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Wed, 22 Apr 2009 20:09:45 +0000 Subject: * Resolve http://opensimulator.org/mantis/view.php?id=3509 by passing up the comms manager rather than null --- .../CreateCommsManager/CreateCommsManagerPlugin.cs | 17 ++++++++++------- .../Region/Communications/Hypergrid/HGUserServices.cs | 8 ++++---- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/OpenSim/ApplicationPlugins/CreateCommsManager/CreateCommsManagerPlugin.cs b/OpenSim/ApplicationPlugins/CreateCommsManager/CreateCommsManagerPlugin.cs index 0280e15..41ad386 100644 --- a/OpenSim/ApplicationPlugins/CreateCommsManager/CreateCommsManagerPlugin.cs +++ b/OpenSim/ApplicationPlugins/CreateCommsManager/CreateCommsManagerPlugin.cs @@ -219,15 +219,19 @@ namespace OpenSim.ApplicationPlugins.CreateCommsManager LocalUserServices localuserService = new LocalUserServices( - m_openSim.NetServersInfo.DefaultHomeLocX, m_openSim.NetServersInfo.DefaultHomeLocY, inventoryService); - localuserService.AddPlugin(m_openSim.ConfigurationSettings.StandaloneUserPlugin, m_openSim.ConfigurationSettings.StandaloneUserSource); + m_openSim.NetServersInfo.DefaultHomeLocX, m_openSim.NetServersInfo.DefaultHomeLocY, + inventoryService); + localuserService.AddPlugin( + m_openSim.ConfigurationSettings.StandaloneUserPlugin, + m_openSim.ConfigurationSettings.StandaloneUserSource); - HGUserServices userService = new HGUserServices(localuserService); + HGUserServices userService = new HGUserServices(m_commsManager, localuserService); // This plugin arrangement could eventually be configurable rather than hardcoded here. - OGS1UserDataPlugin userDataPlugin = new OGS1UserDataPlugin(m_commsManager); - userService.AddPlugin(userDataPlugin); + userService.AddPlugin(new OGS1UserDataPlugin(m_commsManager)); - HGGridServicesStandalone gridService = new HGGridServicesStandalone(m_openSim.NetServersInfo, m_httpServer, m_openSim.AssetCache, m_openSim.SceneManager); + HGGridServicesStandalone gridService + = new HGGridServicesStandalone( + m_openSim.NetServersInfo, m_httpServer, m_openSim.AssetCache, m_openSim.SceneManager); m_commsManager = new HGCommunicationsStandalone(m_openSim.NetServersInfo, m_httpServer, m_openSim.AssetCache, userService, localuserService, inventoryService, gridService, userService, libraryRootFolder, m_openSim.ConfigurationSettings.DumpAssetsToFile); @@ -239,7 +243,6 @@ namespace OpenSim.ApplicationPlugins.CreateCommsManager CreateGridInfoService(); } - protected virtual void InitialiseHGGridServices(LibraryRootFolder libraryRootFolder) { m_commsManager = new HGCommunicationsGridMode(m_openSim.NetServersInfo, m_httpServer, m_openSim.AssetCache, m_openSim.SceneManager, libraryRootFolder); diff --git a/OpenSim/Region/Communications/Hypergrid/HGUserServices.cs b/OpenSim/Region/Communications/Hypergrid/HGUserServices.cs index 357d8a6..25c6341 100644 --- a/OpenSim/Region/Communications/Hypergrid/HGUserServices.cs +++ b/OpenSim/Region/Communications/Hypergrid/HGUserServices.cs @@ -52,14 +52,14 @@ namespace OpenSim.Region.Communications.Hypergrid private LocalUserServices m_localUserServices; // Constructor called when running in grid mode - public HGUserServices(CommunicationsManager parent) - : base(parent) + public HGUserServices(CommunicationsManager commsManager) + : base(commsManager) { } // Constructor called when running in standalone - public HGUserServices(LocalUserServices local) - : base(null) + public HGUserServices(CommunicationsManager commsManager, LocalUserServices local) + : base(commsManager) { m_localUserServices = local; } -- cgit v1.1