Commit aaa67c91 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/trunk@10705 b35dd754-fafc-0310-a699-88a17e54d16e
parent 37e9fc8a
......@@ -354,15 +354,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) {
else if (packet instanceof Message || packet instanceof Presence) {
onlyAvailable = !hasSender ||
(!serverName.equals(from.toString()) && !componentsCache.containsKey(from.toString()));
}
else if (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