Commit 56ffc73f authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Remove entry in incomingServerSessions when there associated collection is emtpy. JM-618

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@3660 b35dd754-fafc-0310-a699-88a17e54d16e
parent 8da46605
......@@ -488,6 +488,10 @@ public class SessionManager extends BasicModule {
List<IncomingServerSession> sessions = incomingServerSessions.get(hostname);
if (sessions != null) {
sessions.remove(session);
if (sessions.isEmpty()) {
// Remove key since there are no more sessions associated
incomingServerSessions.remove(hostname);
}
}
}
}
......
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