INT-1451, more refactoring

This commit is contained in:
Oleg Zhurakousky
2010-09-25 16:22:07 -04:00
parent 47b1f7ae8e
commit 5938cd9f52

View File

@@ -172,8 +172,8 @@ public abstract class AbstractPollingEndpoint extends AbstractEndpoint implement
int count = 0;
while (maxMessagesPerPoll <= 0 || count < maxMessagesPerPoll) {
try {
boolean b = pollingTask.call();
if (!b){
boolean computed = pollingTask.call();
if (!computed){
break;
}
count++;