Merge pull request #640 from DaveBoy/aria

失败回调stop/fail设置完善
pull/709/head
lyy 5 years ago committed by GitHub
commit e99d4a3d7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      PublicComponent/src/main/java/com/arialyy/aria/core/group/SimpleSchedulers.java

@ -122,7 +122,7 @@ final class SimpleSchedulers implements Handler.Callback {
== mGState.getSubSize()) { == mGState.getSubSize()) {
mQueue.clear(); mQueue.clear();
mGState.isRunning.set(false); mGState.isRunning.set(false);
if (mGState.getCompleteNum() > 0) { if (mGState.getCompleteNum() > 0&&Configuration.getInstance().dGroupCfg.isSubFailAsStop()) {
ALog.e(TAG, String.format("任务组【%s】停止", mGState.getGroupHash())); ALog.e(TAG, String.format("任务组【%s】停止", mGState.getGroupHash()));
mGState.listener.onStop(mGState.getProgress()); mGState.listener.onStop(mGState.getProgress());
} else { } else {

Loading…
Cancel
Save