Commit af4cd223 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Pre-Authenticated sessions are now correctly removed from the map.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@673 b35dd754-fafc-0310-a699-88a17e54d16e
parent f090ec80
......@@ -312,7 +312,9 @@ public class SessionManager extends BasicModule implements ConnectionCloseListen
// remove its route from the sessions set. We hand the session back
// to ourselves in the message.
session.getConnection().registerCloseListener(this, session);
preAuthenticatedSessions.remove(session.getAddress().toString());
// Remove the pre-Authenticated session but remember to use the temporary JID as the key
preAuthenticatedSessions.remove(new JID(null, session.getAddress().getDomain(),
session.getStreamID().toString()).toString());
success = true;
}
catch (UnauthorizedException e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment