Commit 16a53afc authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Unregister component's domain if registration of new component fails. JM-902

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@6238 b35dd754-fafc-0310-a699-88a17e54d16e
parent 7add7043
......@@ -108,6 +108,8 @@ public class InternalComponentManager implements ComponentManager, RoutableChann
component.start();
}
catch (ComponentException e) {
// Unregister the componet's domain
components.remove(subdomain);
// Remove the route
XMPPServer.getInstance().getRoutingTable().removeRoute(componentJID);
// Rethrow the exception
......
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