Commit 7a8b26f6 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Do not require available presence to route packets from something@component. JM-1440

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/branches@10706 b35dd754-fafc-0310-a699-88a17e54d16e
parent a57441e4
......@@ -3,7 +3,7 @@
* $Revision: 3138 $
* $Date: 2005-12-01 02:13:26 -0300 (Thu, 01 Dec 2005) $
*
* Copyright (C) 2008 Jive Software. All rights reserved.
* Copyright (C) 2005-2008 Jive Software. All rights reserved.
*
* This software is published under the terms of the GNU Public License (GPL),
* a copy of which is included in this distribution, or a commercial license
......@@ -352,15 +352,11 @@ public class RoutingTableImpl extends BasicModule implements RoutingTable, Clust
boolean hasSender = from != null;
if (packet instanceof IQ) {
onlyAvailable = hasSender && !(serverName.equals(from.getDomain()) && from.getResource() == null) &&
!componentsCache.containsKey(from.toString());
!componentsCache.containsKey(from.getDomain());
}
else if (packet instanceof Message) {
onlyAvailable = !hasSender ||
(!serverName.equals(from.toString()) && !componentsCache.containsKey(from.toString()));
}
else if (packet instanceof Presence) {
else if (packet instanceof Message || packet instanceof Presence) {
onlyAvailable = !hasSender ||
(!serverName.equals(from.toString()) && !componentsCache.containsKey(from.toString()));
(!serverName.equals(from.toString()) && !componentsCache.containsKey(from.getDomain()));
}
return onlyAvailable;
}
......
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