From 5eb091ceee98f334fbb4c37e25f8217d1c40701f Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Fri, 30 Nov 2007 01:20:31 +0000 Subject: * Temporary fix for 'User already online' issue in standalone mode. * Revert this once we get a working logoff. --- OpenSim/Framework/Communications/LoginService.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'OpenSim/Framework/Communications/LoginService.cs') diff --git a/OpenSim/Framework/Communications/LoginService.cs b/OpenSim/Framework/Communications/LoginService.cs index 118668c..9177704 100644 --- a/OpenSim/Framework/Communications/LoginService.cs +++ b/OpenSim/Framework/Communications/LoginService.cs @@ -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 -- cgit v1.1