cancel update timer on complete

This commit is contained in:
Jonathan Shook 2024-06-17 17:38:41 -05:00
parent 7c5613a42f
commit 22bfffc0eb

View File

@ -97,6 +97,9 @@ public class ResolverForNBIOCache implements ContentResolver {
public void run() {
double progress = (double) totalBytesRead / fileSize * 100;
logger.info(() -> "Progress: " + String.format("%.2f", progress) + "% completed");
if (totalBytesRead==fileSize) {
cancel();
}
}
}