mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
limit transaction size
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user