修复组合任务获取文件信息时,其中子任务失败,状态回调错误的问题

This commit is contained in:
laoyuyu
2020-12-09 21:40:01 +08:00
parent 9db8f1e9c0
commit 5853fe9e3e
6 changed files with 38 additions and 19 deletions

View File

@@ -47,7 +47,6 @@ public final class GroupRunState {
* 停止的任务数
*/
private AtomicInteger mStopNum = new AtomicInteger();
;
/**
* 当前进度

View File

@@ -182,7 +182,7 @@ final class SimpleSchedulers implements Handler.Callback {
Log.d(TAG,
String.format("handleComplete, size = %s, completeNum = %s, failNum = %s, stopNum = %s",
mGState.getSubSize(), mGState.getCompleteNum(), mGState.getFailNum(),
mGState.getSubSize()));
mGState.getStopNum()));
TaskRecord record = loader.getRecord();
if (record != null && record.isBlock) {