mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
* Making silent logoff of old hung sessions for new connections default for
StandAlone users. Not touching grid.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user