修复重构loader后ftp模块的bug
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user