组合下载子任务失败Exception为空

pull/633/head
DaveBoy1994 5 years ago
parent 370dca27ff
commit 14901d4c0c
  1. 3
      PublicComponent/src/main/java/com/arialyy/aria/core/listener/DownloadGroupListener.java

@ -30,6 +30,8 @@ import com.arialyy.aria.util.CommonUtil;
import com.arialyy.aria.util.ErrorHelp; import com.arialyy.aria.util.ErrorHelp;
import com.arialyy.aria.util.RecordUtil; import com.arialyy.aria.util.RecordUtil;
import static com.arialyy.aria.core.task.AbsTask.ERROR_INFO_KEY;
/** /**
* Created by Aria.Lao on 2017/7/20. 任务组下载事件 * Created by Aria.Lao on 2017/7/20. 任务组下载事件
*/ */
@ -85,6 +87,7 @@ public class DownloadGroupListener
handleSubSpeed(subEntity, 0); handleSubSpeed(subEntity, 0);
saveSubState(IEntity.STATE_FAIL, subEntity); saveSubState(IEntity.STATE_FAIL, subEntity);
saveCurrentLocation(); saveCurrentLocation();
mSeedEntity.groupTask.putExpand(ERROR_INFO_KEY,e);
sendInState2Target(ISchedulers.SUB_FAIL, subEntity); sendInState2Target(ISchedulers.SUB_FAIL, subEntity);
if (e != null) { if (e != null) {
e.printStackTrace(); e.printStackTrace();

Loading…
Cancel
Save