mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 01:35:46 +08:00
* Temporary fix for 'User already online' issue in standalone mode.
* Revert this once we get a working logoff.
This commit is contained in:
@@ -96,10 +96,15 @@ namespace OpenSim.Framework.UserManagement
|
||||
else
|
||||
{
|
||||
// If we already have a session...
|
||||
|
||||
if (userProfile.currentAgent != null && userProfile.currentAgent.agentOnline)
|
||||
{
|
||||
userProfile.currentAgent.agentOnline = false;
|
||||
m_userManager.CommitAgent(ref userProfile);
|
||||
|
||||
// Reject the login
|
||||
return logResponse.CreateAlreadyLoggedInResponse();
|
||||
|
||||
}
|
||||
// Otherwise...
|
||||
// Create a new agent session
|
||||
|
||||
Reference in New Issue
Block a user