|
|
|
@ -491,7 +491,7 @@ public abstract class AbsFileer<ENTITY extends AbsNormalEntity, TASK_ENTITY exte |
|
|
|
|
/** |
|
|
|
|
* 重试线程任务,只有线程创建成功才能重试 |
|
|
|
|
*/ |
|
|
|
|
public void retryThradTask() { |
|
|
|
|
public void retryThreadTask() { |
|
|
|
|
if (mTask == null || mTask.size() == 0) { |
|
|
|
|
ALog.w(TAG, "没有线程任务"); |
|
|
|
|
return; |
|
|
|
@ -501,6 +501,9 @@ public abstract class AbsFileer<ENTITY extends AbsNormalEntity, TASK_ENTITY exte |
|
|
|
|
AbsThreadTask task = mTask.get(key); |
|
|
|
|
if (task != null && !task.isThreadComplete()) { |
|
|
|
|
task.getConfig().START_LOCATION = task.getCurrentLocation(); |
|
|
|
|
mConstance.isStop = false; |
|
|
|
|
mConstance.isCancel = false; |
|
|
|
|
mConstance.isRunning = true; |
|
|
|
|
ALog.d(TAG, String.format("任务【%s】开始重试,线程__%s__【开始位置:%s,结束位置:%s】", mEntity.getFileName(), |
|
|
|
|
key, task.getConfig().START_LOCATION, task.getConfig().END_LOCATION)); |
|
|
|
|
mFixedThreadPool.execute(task); |
|
|
|
|