aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
authorTeravus Ovares2007-11-30 01:20:31 +0000
committerTeravus Ovares2007-11-30 01:20:31 +0000
commit5eb091ceee98f334fbb4c37e25f8217d1c40701f (patch)
tree3c02f9657c212b06023d9de47a0860428e439c4c /OpenSim/Framework
parentrevert r2510, this seems to break normal logins, at least from (diff)
downloadopensim-SC_OLD-5eb091ceee98f334fbb4c37e25f8217d1c40701f.zip
opensim-SC_OLD-5eb091ceee98f334fbb4c37e25f8217d1c40701f.tar.gz
opensim-SC_OLD-5eb091ceee98f334fbb4c37e25f8217d1c40701f.tar.bz2
opensim-SC_OLD-5eb091ceee98f334fbb4c37e25f8217d1c40701f.tar.xz
* Temporary fix for 'User already online' issue in standalone mode.
* Revert this once we get a working logoff.
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r--OpenSim/Framework/Communications/LoginService.cs5
1 files changed, 5 insertions, 0 deletions
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
96 else 96 else
97 { 97 {
98 // If we already have a session... 98 // If we already have a session...
99
99 if (userProfile.currentAgent != null && userProfile.currentAgent.agentOnline) 100 if (userProfile.currentAgent != null && userProfile.currentAgent.agentOnline)
100 { 101 {
102 userProfile.currentAgent.agentOnline = false;
103 m_userManager.CommitAgent(ref userProfile);
104
101 // Reject the login 105 // Reject the login
102 return logResponse.CreateAlreadyLoggedInResponse(); 106 return logResponse.CreateAlreadyLoggedInResponse();
107
103 } 108 }
104 // Otherwise... 109 // Otherwise...
105 // Create a new agent session 110 // Create a new agent session