Upgrade to Spring 2.5.5

This commit is contained in:
dsyer
2008-06-24 13:45:45 +00:00
parent 80b4386c1b
commit f7fb7e0228
2 changed files with 8 additions and 8 deletions

View File

@@ -153,10 +153,11 @@ public class ChunkMessageChannelItemWriter extends StepExecutionListenerSupport
private boolean waitForResults() {
// TODO: cumulative timeout, or throw an exception?
int count = 0;
while (localState.getExpecting() > 0 && count++ < 10) {
int maxCount = 10;
while (localState.getExpecting() > 0 && count++ < maxCount) {
getNextResult(100);
}
return count < 10;
return count < maxCount;
}
/**