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 { ...@@ -1295,10 +1295,11 @@ public class SessionManager extends BasicModule {
public void onConnectionClose(Object handback) { public void onConnectionClose(Object handback) {
ComponentSession session = (ComponentSession)handback; ComponentSession session = (ComponentSession)handback;
try { try {
// Unbind the domain for this external component // Unbind registered domains for this external component
String domain = session.getAddress().getDomain(); for (String domain : session.getExternalComponent().getSubdomains()) {
String subdomain = domain.substring(0, domain.indexOf(serverName) - 1); String subdomain = domain.substring(0, domain.indexOf(serverName) - 1);
InternalComponentManager.getInstance().removeComponent(subdomain); InternalComponentManager.getInstance().removeComponent(subdomain);
}
} }
catch (Exception e) { catch (Exception e) {
// Can't do anything about this problem... // 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