fix for matchesForwarding Filter (spotted by John Heitmann)

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@381627 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2006-02-28 10:43:25 +00:00
parent 35e088856d
commit 695a766b5c
1 changed files with 1 additions and 0 deletions

View File

@ -747,6 +747,7 @@ public class DemandForwardingBridge implements Bridge{
if (log.isTraceEnabled()){ if (log.isTraceEnabled()){
log.trace("Message all ready routed once through this broker - ignoring: " + message); log.trace("Message all ready routed once through this broker - ignoring: " + message);
} }
return false;
} }
int hops = message.getBrokerPath() == null ? 0 : message.getBrokerPath().length; int hops = message.getBrokerPath() == null ? 0 : message.getBrokerPath().length;
if(hops >= networkTTL){ if(hops >= networkTTL){