diff options
Diffstat (limited to 'OpenSim/Grid/UserServer/Main.cs')
-rw-r--r-- | OpenSim/Grid/UserServer/Main.cs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/OpenSim/Grid/UserServer/Main.cs b/OpenSim/Grid/UserServer/Main.cs index 1ae4bee..2650694 100644 --- a/OpenSim/Grid/UserServer/Main.cs +++ b/OpenSim/Grid/UserServer/Main.cs | |||
@@ -44,7 +44,6 @@ namespace OpenSim.Grid.UserServer | |||
44 | { | 44 | { |
45 | private UserConfig Cfg; | 45 | private UserConfig Cfg; |
46 | 46 | ||
47 | |||
48 | public UserManager m_userManager; | 47 | public UserManager m_userManager; |
49 | public UserLoginService m_loginService; | 48 | public UserLoginService m_loginService; |
50 | public MessageServersConnector m_messagesService; | 49 | public MessageServersConnector m_messagesService; |
@@ -89,13 +88,13 @@ namespace OpenSim.Grid.UserServer | |||
89 | public void Startup() | 88 | public void Startup() |
90 | { | 89 | { |
91 | Cfg = new UserConfig("USER SERVER", (Path.Combine(Util.configDir(), "UserServer_Config.xml"))); | 90 | Cfg = new UserConfig("USER SERVER", (Path.Combine(Util.configDir(), "UserServer_Config.xml"))); |
91 | |||
92 | m_stats = new UserStatsReporter(); | ||
92 | 93 | ||
93 | MainLog.Instance.Verbose("REGION", "Establishing data connection"); | 94 | MainLog.Instance.Verbose("REGION", "Establishing data connection"); |
94 | m_userManager = new UserManager(); | 95 | m_userManager = new UserManager(m_stats); |
95 | m_userManager._config = Cfg; | 96 | m_userManager._config = Cfg; |
96 | m_userManager.AddPlugin(Cfg.DatabaseProvider); | 97 | m_userManager.AddPlugin(Cfg.DatabaseProvider); |
97 | |||
98 | m_stats = new UserStatsReporter(); | ||
99 | 98 | ||
100 | m_loginService = new UserLoginService( | 99 | m_loginService = new UserLoginService( |
101 | m_userManager, new LibraryRootFolder(), m_stats, Cfg, Cfg.DefaultStartupMsg); | 100 | m_userManager, new LibraryRootFolder(), m_stats, Cfg, Cfg.DefaultStartupMsg); |