Skip to content
Snippets Groups Projects
Commit 79b1a4da authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Service: transmits empty station list"

parents 09dcc2da c7022e19
No related branches found
No related tags found
No related merge requests found
......@@ -189,7 +189,8 @@ class ProgramInfoCache {
removed.add(id);
}
}
if (modified.isEmpty() && removed.isEmpty() && mComplete == chunk.isComplete()) {
if (modified.isEmpty() && removed.isEmpty() && mComplete == chunk.isComplete()
&& !chunk.isPurge()) {
return null;
}
mComplete = chunk.isComplete();
......@@ -239,9 +240,10 @@ class ProgramInfoCache {
}
// Determine number of chunks we need to send.
int numChunks = 0;
int numChunks = purge ? 1 : 0;
if (modified != null) {
numChunks = roundUpFraction(modified.size(), maxNumModifiedPerChunk);
numChunks = Math.max(numChunks,
roundUpFraction(modified.size(), maxNumModifiedPerChunk));
}
if (removed != null) {
numChunks = Math.max(numChunks, roundUpFraction(removed.size(), maxNumRemovedPerChunk));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment