limit transaction size

This commit is contained in:
Athou
2013-11-27 08:07:44 +01:00
parent 5c44f392ca
commit 4f8e2ab478

View File

@@ -161,7 +161,7 @@ public class FeedRefreshTaskGiver {
// then, add to those the feeds we got from the add() method. We add them at the beginning of the list as they probably have a
// higher priority
int size = addQueue.size();
for (int i = 0; i < size; i++) {
for (int i = 0; i < Math.min(count, size); i++) {
contexts.add(0, addQueue.poll());
}