Merge pull request #661 from DaveBoy/aria

子任务失败的问题处理
pull/709/head
lyy 5 years ago committed by GitHub
commit b109726c7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      PublicComponent/src/main/java/com/arialyy/aria/core/loader/GroupSubThreadStateManager.java

@ -22,6 +22,8 @@ import android.os.Message;
import com.arialyy.aria.core.TaskRecord;
import com.arialyy.aria.core.inf.IThreadStateManager;
import com.arialyy.aria.core.listener.IEventListener;
import com.arialyy.aria.exception.AriaException;
import com.arialyy.aria.util.ALog;
import com.arialyy.aria.util.CommonUtil;
import com.arialyy.aria.util.FileUtil;
@ -101,7 +103,7 @@ public class GroupSubThreadStateManager implements IThreadStateManager {
(AriaException) b.getSerializable(DATA_ERROR_INFO));*/
quitLooper();
}
sendMessageFromMsg(msg);
//sendMessageFromMsg(msg);
break;
case STATE_COMPLETE:
mCompleteNum.getAndIncrement();
@ -131,6 +133,9 @@ public class GroupSubThreadStateManager implements IThreadStateManager {
//mListener.onComplete();
}
quitLooper();
}else if (isFail()) {
sendMessageFromMsg(msg);
quitLooper();
}
break;
case STATE_RUNNING:

Loading…
Cancel
Save