Commit 761e4622 authored by Daniel Henninger's avatar Daniel Henninger Committed by dhenninger

Updated to log out active sessions upon registration deletion.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@7699 b35dd754-fafc-0310-a699-88a17e54d16e
parent ac5e704f
...@@ -1348,6 +1348,20 @@ public abstract class BaseTransport implements Component, RosterEventListener { ...@@ -1348,6 +1348,20 @@ public abstract class BaseTransport implements Component, RosterEventListener {
if (registrations.isEmpty()) { if (registrations.isEmpty()) {
throw new UserNotFoundException("User was not registered."); throw new UserNotFoundException("User was not registered.");
} }
// Log out any active sessions.
try {
TransportSession session = sessionManager.getSession(jid);
if (session.isLoggedIn()) {
this.registrationLoggedOut(session);
}
sessionManager.removeSession(jid);
}
catch (NotFoundException e) {
// Ok then.
}
// For now, we're going to have to just nuke all of these. Sorry. // For now, we're going to have to just nuke all of these. Sorry.
for (Registration reg : registrations) { for (Registration reg : registrations) {
registrationManager.deleteRegistration(reg); registrationManager.deleteRegistration(reg);
......
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