diff options
Diffstat (limited to 'OpenSim/Framework/Communications')
-rw-r--r-- | OpenSim/Framework/Communications/LoginService.cs | 5 |
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 |