Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
DDSRem committed Jul 23, 2024
1 parent 52af8c7 commit e0db77b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ private void createDownloadTask(String url, Map<String, String> headers) {
}
Request request = requestBuilder.build();
//不支持断点续传,单线程下载
if(!this.supportRange) {
if(!this.supportRange || threadNum == 0) {
Logger.log(connId + "[createDownloadTask]:单线程模式下载,配置线程数:" + threadNum);
Callable<InputStream> callable = () -> {
return downloadTask(url, headers, "", 0);
Expand Down

0 comments on commit e0db77b

Please sign in to comment.