Skip to content

Commit

Permalink
fix onResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
tlrx committed Jun 6, 2024
1 parent a4835cc commit cdabee7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ public void onProgress(final long progressValue) {

@Override
public void onResponse(Long result) {
if (result == null || result < start || end < result) {
assert false : start + " < " + result + " < " + end;
if (result == null || end != result) {
assert false : result + " != " + end;
throw new IllegalArgumentException("Invalid completion value [start=" + start + ",end=" + end + ",response=" + result + ']');
}
ensureNotCompleted();
Expand Down

0 comments on commit cdabee7

Please sign in to comment.