diff --git a/OpenSim/Framework/Communications/LoginService.cs b/OpenSim/Framework/Communications/LoginService.cs index 91777040ff..1d536691be 100644 --- a/OpenSim/Framework/Communications/LoginService.cs +++ b/OpenSim/Framework/Communications/LoginService.cs @@ -99,7 +99,7 @@ namespace OpenSim.Framework.UserManagement if (userProfile.currentAgent != null && userProfile.currentAgent.agentOnline) { - userProfile.currentAgent.agentOnline = false; + userProfile.currentAgent = null; m_userManager.CommitAgent(ref userProfile); // Reject the login