aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications/LoginService.cs
diff options
context:
space:
mode:
authorTeravus Ovares2008-03-18 06:03:50 +0000
committerTeravus Ovares2008-03-18 06:03:50 +0000
commit443c66b43239038d50bf89e2233fdba778c250f7 (patch)
tree9bafd952ffdf3318a570c17e5be2846e02760125 /OpenSim/Framework/Communications/LoginService.cs
parent* Added the ability to type the partial name of a region in the start locatio... (diff)
downloadopensim-SC-443c66b43239038d50bf89e2233fdba778c250f7.zip
opensim-SC-443c66b43239038d50bf89e2233fdba778c250f7.tar.gz
opensim-SC-443c66b43239038d50bf89e2233fdba778c250f7.tar.bz2
opensim-SC-443c66b43239038d50bf89e2233fdba778c250f7.tar.xz
Since we don't yet have a reliable way to release the lock that prevents a user from logging in a second time if they're already registered as logged in;
* If a user logs in and they are noted as agentOnline. Set agentOnline = false and send a 'you're already logged in' message to the user asking them to wait 5 minutes. These 5 minutes are not enforced (because there's no foolproof interlock release yet without the grid operator getting a support call for every little sim crash). When the user gets the message, they can log-in immediately after it, but the user can expect weird results if they don't wait 5 minutes and log-in to the region they were in previously.
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Communications/LoginService.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Framework/Communications/LoginService.cs b/OpenSim/Framework/Communications/LoginService.cs
index dede607..72b408b 100644
--- a/OpenSim/Framework/Communications/LoginService.cs
+++ b/OpenSim/Framework/Communications/LoginService.cs
@@ -164,7 +164,7 @@ namespace OpenSim.Framework.UserManagement
164 // If agentOnline could not turn from true back to false normally 164 // If agentOnline could not turn from true back to false normally
165 // because of some problem, for instance, the crashment of server or client, 165 // because of some problem, for instance, the crashment of server or client,
166 // the user cannot log in any longer. 166 // the user cannot log in any longer.
167 userProfile.currentAgent = null; 167 userProfile.currentAgent.agentOnline = false;
168 m_userManager.CommitAgent(ref userProfile); 168 m_userManager.CommitAgent(ref userProfile);
169 169
170 // Reject the login 170 // Reject the login