From 710b8375a98cf4dd96342eabc2eaaccc2fbd46f2 Mon Sep 17 00:00:00 2001 From: MW Date: Fri, 5 Oct 2007 11:40:30 +0000 Subject: Some tiny refactoring --- OpenSim/Region/Application/OpenSimMain.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'OpenSim/Region/Application') diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs index 637246e..eeb69c5 100644 --- a/OpenSim/Region/Application/OpenSimMain.cs +++ b/OpenSim/Region/Application/OpenSimMain.cs @@ -63,6 +63,7 @@ namespace OpenSim protected ModuleLoader m_moduleLoader; + protected LocalLoginService m_loginService; protected string m_storageDLL = "OpenSim.DataStore.NullStorage.dll"; @@ -170,12 +171,10 @@ namespace OpenSim CommunicationsLocal localComms = new CommunicationsLocal(m_networkServersInfo, m_httpServer, m_assetCache, userService, inventoryService, backendService, backendService); m_commsManager = localComms; + m_loginService = new LocalLoginService(userService, standaloneWelcomeMessage, localComms, m_networkServersInfo, standaloneAuthenticate); + m_loginService.OnLoginToRegion += backendService.AddNewSession; - LocalLoginService loginService = new LocalLoginService(userService, standaloneWelcomeMessage, localComms, m_networkServersInfo, standaloneAuthenticate); - loginService.OnLoginToRegion += backendService.AddNewSession; - - m_httpServer.AddXmlRPCHandler("login_to_simulator", loginService.XmlRpcLoginMethod); - + m_httpServer.AddXmlRPCHandler("login_to_simulator", m_loginService.XmlRpcLoginMethod); if (standaloneAuthenticate) { -- cgit v1.1