From 040a887b9c5f22a79de3fdff3947b69d87221379 Mon Sep 17 00:00:00 2001 From: Johan Berntsson Date: Tue, 18 Mar 2008 01:38:07 +0000 Subject: Last position will be stored in the DB on logout, and the avatar can continue from the same position in the next login (only with MySQL at the moment) --- OpenSim/Framework/Communications/LoginService.cs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'OpenSim/Framework/Communications/LoginService.cs') diff --git a/OpenSim/Framework/Communications/LoginService.cs b/OpenSim/Framework/Communications/LoginService.cs index 3bf6096..fc02ff6 100644 --- a/OpenSim/Framework/Communications/LoginService.cs +++ b/OpenSim/Framework/Communications/LoginService.cs @@ -154,6 +154,10 @@ namespace OpenSim.Framework.UserManagement if (userProfile.currentAgent != null && userProfile.currentAgent.agentOnline) { + //TODO: The following statements can cause trouble: + // If agentOnline could not turn from true back to false normally + // because of some problem, for instance, the crashment of server or client, + // the user cannot log in any longer. userProfile.currentAgent = null; m_userManager.CommitAgent(ref userProfile); -- cgit v1.1