Commit 28e01454 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Fixed route removal to remote server. JM-406

git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@2845 b35dd754-fafc-0310-a699-88a17e54d16e
parent 176e823c
/** /**
* $RCSfile$ * $RCSfile: RoutingTableImpl.java,v $
* $Revision$ * $Revision$
* $Date$ * $Date$
* *
...@@ -258,7 +258,8 @@ public class RoutingTableImpl extends BasicModule implements RoutingTable { ...@@ -258,7 +258,8 @@ public class RoutingTableImpl extends BasicModule implements RoutingTable {
} }
else if (nameRoutes != null) { else if (nameRoutes != null) {
// The retrieved route points to a RoutableChannelHandler // The retrieved route points to a RoutableChannelHandler
if (((RoutableChannelHandler)nameRoutes).getAddress().equals(node)) { if (("".equals(nodeJID) && "".equals(resourceJID)) ||
((RoutableChannelHandler) nameRoutes).getAddress().equals(node)) {
// Remove the route to this domain // Remove the route to this domain
routes.remove(node.getDomain()); routes.remove(node.getDomain());
} }
......
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