Skip to content

Commit

Permalink
修复部分文件下载失败问题
Browse files Browse the repository at this point in the history
由于最后一部分指定的下载范围超过了文件的大小,导致一些服务器在下载时数据返回错误,导致了下载的文件比真实文件要大,测试下载链接:http://kuaiting-v.oss-cn-beijing.aliyuncs.com/download/tingting_android_v2.1.0_100001.apk?t=14709926465191
  • Loading branch information
lazy-ape committed Aug 12, 2016
1 parent 491a84e commit 8e8f6b0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ private void dlDispatch() {
int start = i * threadLength;
int end = start + threadLength - 1;
if (i == threadSize - 1) {
end = start + threadLength + remainder;
end = start + threadLength + remainder - 1;
}
DLThreadInfo threadInfo =
new DLThreadInfo(UUID.randomUUID().toString(), info.baseUrl, start, end);
Expand Down

0 comments on commit 8e8f6b0

Please sign in to comment.