* Making silent logoff of old hung sessions for new connections default for

StandAlone users. Not touching grid.
This commit is contained in:
Arthur Valadares
2009-06-01 18:34:40 +00:00
parent 412295ccde
commit eb330f71be
5 changed files with 7 additions and 19 deletions

View File

@@ -181,10 +181,9 @@ namespace OpenSim.Framework.Communications.Services
// try to tell the region that their user is dead.
LogOffUser(userProfile, " XMLRPC You were logged off because you logged in from another location");
// Reject the login
if (m_warn_already_logged)
{
// This is behavior for for grid, reject login
m_log.InfoFormat(
"[LOGIN END]: XMLRPC Notifying user {0} {1} that they are already logged in",
firstname, lastname);
@@ -193,6 +192,7 @@ namespace OpenSim.Framework.Communications.Services
}
else
{
// 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.",
firstname, lastname);

View File

@@ -304,7 +304,9 @@ namespace OpenSim.Framework.Communications.Tests
}
[Test]
// [Test]
// Commenting out test now that LLStandAloneLoginService no longer replies with message in this case.
// Kept the code for future test with grid mode, which will keep this behavior.
public void T023_TestAuthenticatedLoginAlreadyLoggedIn()
{
TestHelper.InMethod();