From 7e8bfc461878b33fb85f99c2a751e3f66278f26e Mon Sep 17 00:00:00 2001 From: Arthur Valadares Date: Tue, 7 Jul 2009 23:07:57 +0000 Subject: * Allowing LLSD logins to do silent logout of last hung session on standalone only, following the already implemented XMLRPC behavior --- .../Communications/Services/LoginService.cs | 25 +++++++++++++++------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/OpenSim/Framework/Communications/Services/LoginService.cs b/OpenSim/Framework/Communications/Services/LoginService.cs index 897c763..a9be197 100644 --- a/OpenSim/Framework/Communications/Services/LoginService.cs +++ b/OpenSim/Framework/Communications/Services/LoginService.cs @@ -197,7 +197,7 @@ namespace OpenSim.Framework.Communications.Services { // This is behavior for standalone (silent logout of last hung session) m_log.InfoFormat( - "[LOGIN]: User {0} {1} is already logged in, not notifying user, kicking old presence and starting new login.", + "[LOGIN]: XMLRPC User {0} {1} is already logged in, not notifying user, kicking old presence and starting new login.", firstname, lastname); } } @@ -422,14 +422,23 @@ namespace OpenSim.Framework.Communications.Services // try to tell the region that their user is dead. LogOffUser(userProfile, " LLSD You were logged off because you logged in from another location"); - // Reject the login - - m_log.InfoFormat( - "[LOGIN END]: LLSD Notifying user {0} {1} that they are already logged in", - userProfile.FirstName, userProfile.SurName); + if (m_warn_already_logged) + { + // This is behavior for for grid, reject login + m_log.InfoFormat( + "[LOGIN END]: LLSD Notifying user {0} {1} that they are already logged in", + userProfile.FirstName, userProfile.SurName); - userProfile.CurrentAgent = null; - return logResponse.CreateAlreadyLoggedInResponseLLSD(); + userProfile.CurrentAgent = null; + return logResponse.CreateAlreadyLoggedInResponseLLSD(); + } + else + { + // This is behavior for standalone (silent logout of last hung session) + m_log.InfoFormat( + "[LOGIN]: LLSD User {0} {1} is already logged in, not notifying user, kicking old presence and starting new login.", + userProfile.FirstName, userProfile.SurName); + } } // Otherwise... -- cgit v1.1