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 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'OpenSim/ApplicationPlugins/CreateCommsManager') 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); -- cgit v1.1