Commit e0024422 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Remove all registered domains for the component being removed. JM-624

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@3704 b35dd754-fafc-0310-a699-88a17e54d16e
parent 4ad815e5
......@@ -1295,10 +1295,11 @@ public class SessionManager extends BasicModule {
public void onConnectionClose(Object handback) {
ComponentSession session = (ComponentSession)handback;
try {
// Unbind the domain for this external component
String domain = session.getAddress().getDomain();
String subdomain = domain.substring(0, domain.indexOf(serverName) - 1);
InternalComponentManager.getInstance().removeComponent(subdomain);
// Unbind registered domains for this external component
for (String domain : session.getExternalComponent().getSubdomains()) {
String subdomain = domain.substring(0, domain.indexOf(serverName) - 1);
InternalComponentManager.getInstance().removeComponent(subdomain);
}
}
catch (Exception e) {
// Can't do anything about this problem...
......
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