Skip to content

Commit

Permalink
修复分块文件下载完毕后断点续传LOG线程卡死问题
Browse files Browse the repository at this point in the history
  • Loading branch information
niumoo committed Aug 3, 2020
1 parent 2e8b3da commit 0ecfb9b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/com/wdbyte/downbit/thread/DownloadThread.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public Boolean call() throws Exception {
Long localFileContentLength = FileUtils.getFileContentLength(httpFileName);
if (localFileContentLength >= endPos - startPos) {
System.out.println("> " + httpFileName + " 已经下载完毕,无需重复下载");
LogThread.DOWNLOAD_FINISH.addAndGet(1);
return true;
}
HttpURLConnection httpUrlConnection = HttpUtls.getHttpUrlConnection(url, startPos + localFileContentLength, endPos);
Expand Down

0 comments on commit 0ecfb9b

Please sign in to comment.