diff --git a/Aria/src/main/java/com/arialyy/aria/core/download/DownloadStateConstance.java b/Aria/src/main/java/com/arialyy/aria/core/download/DownloadStateConstance.java index 37131f87..7d33b597 100644 --- a/Aria/src/main/java/com/arialyy/aria/core/download/DownloadStateConstance.java +++ b/Aria/src/main/java/com/arialyy/aria/core/download/DownloadStateConstance.java @@ -46,6 +46,10 @@ final class DownloadStateConstance { FAIL_NUM = 0; } + void setThreadNum(int threadNum){ + THREAD_NUM = threadNum; + } + /** * 所有子线程是否都已经停止下载 */ diff --git a/Aria/src/main/java/com/arialyy/aria/core/upload/UploadUtil.java b/Aria/src/main/java/com/arialyy/aria/core/upload/UploadUtil.java index 309594d7..ef34e7e9 100644 --- a/Aria/src/main/java/com/arialyy/aria/core/upload/UploadUtil.java +++ b/Aria/src/main/java/com/arialyy/aria/core/upload/UploadUtil.java @@ -80,7 +80,6 @@ final class UploadUtil implements Runnable { } mListener.onPre(); - URL url; try { url = new URL(mTaskEntity.uploadUrl);