more tuning

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@393490 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2006-04-12 15:52:06 +00:00
parent 9e3a3344ff
commit 00d054a6c2
1 changed files with 1 additions and 3 deletions

View File

@ -189,9 +189,7 @@ public class ActiveMQMessageConsumer implements MessageAvailableConsumer, StatsC
this.session.removeConsumer(this);
throw e;
}
this.optimizeAcknowledge=session.connection.isOptimizeAcknowledge()&&!info.isDurable()
&&!info.getDestination().isQueue()
&&session.isAutoAcknowledge();
this.optimizeAcknowledge=session.connection.isOptimizeAcknowledge()&&session.isAutoAcknowledge();
if (session.connection.isStarted())
start();
}