Commit 8bb243e7 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Fixed removal of external components.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1182 b35dd754-fafc-0310-a699-88a17e54d16e
parent b647ba07
......@@ -1051,7 +1051,9 @@ public class SessionManager extends BasicModule {
try {
ComponentSession session = (ComponentSession)handback;
// Unbind the domain for this external component
InternalComponentManager.getInstance().removeComponent(session.getAddress().getDomain());
String domain = session.getAddress().getDomain();
String subdomain = domain.substring(0, domain.indexOf(serverName) - 1);
InternalComponentManager.getInstance().removeComponent(subdomain);
// Remove the session
componentsSessions.remove(session);
}
......
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