diff --git a/src/com/wdbyte/downbit/thread/DownloadThread.java b/src/com/wdbyte/downbit/thread/DownloadThread.java index 73c13c7..d9b237a 100644 --- a/src/com/wdbyte/downbit/thread/DownloadThread.java +++ b/src/com/wdbyte/downbit/thread/DownloadThread.java @@ -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);