修复重构loader后ftp模块的bug

This commit is contained in:
laoyuyu
2020-01-04 20:06:25 +08:00
parent c39bfbdd88
commit e14928e260
28 changed files with 141 additions and 85 deletions

View File

@@ -85,7 +85,7 @@ public final class HttpFileInfoTask implements IInfoTask, Runnable {
} catch (IOException e) {
e.printStackTrace();
failDownload(new AriaIOException(TAG,
String.format("下载失败filePath: %s, url: %s", mEntity.getDownloadPath(), mEntity.getUrl())),
String.format("下载失败filePath: %s, url: %s", mEntity.getFilePath(), mEntity.getUrl())),
true);
} finally {
if (conn != null) {
@@ -131,7 +131,7 @@ public final class HttpFileInfoTask implements IInfoTask, Runnable {
if (!FileUtil.checkMemorySpace(mEntity.getFilePath(), len)) {
failDownload(new TaskException(TAG,
String.format("下载失败内存空间不足filePath: %s, url: %s", mEntity.getDownloadPath(),
String.format("下载失败内存空间不足filePath: %s, url: %s", mEntity.getFilePath(),
mEntity.getUrl())), false);
return;
}

View File

@@ -132,7 +132,7 @@ public final class HttpDGInfoTask implements IInfoTask {
wrapper.getEntity().setFileSize(size);
wrapper.getEntity().update();
getLenComplete = true;
ALog.d(TAG, String.format("获取组合任务长度完成,组合任务总长度:%s失败的任务数:%s", size, failCount));
ALog.d(TAG, String.format("获取组合任务长度完成,组合任务总长度:%s失败的任务数:%s", size, failCount));
callback.onSucceed(wrapper.getKey(), new CompleteInfo());
notifyLock();
}