Skip to content

Commit

Permalink
complete requestObserver even if there is no progressIndicator
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillvasilenko committed Feb 6, 2024
1 parent 00e439c commit e666127
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,10 @@ public void onCompleted() {
progressIndicator.accept(-1, -1);
requestObserver.onCompleted();
progressIndicator.accept(Integer.MAX_VALUE, Integer.MAX_VALUE);
} else {
requestObserver.onCompleted();
}

try {
finishedLatch.await();
} catch (InterruptedException e) {
Expand Down

0 comments on commit e666127

Please sign in to comment.