修复下载中,网络断开不会重试的bug

This commit is contained in:
AriaLyy
2017-06-19 18:02:52 +08:00
parent 1052ab057d
commit 8813baf107

View File

@ -192,7 +192,6 @@ class DownloadUtil implements IDownloadUtil, Runnable {
private void failDownload(String msg) {
Log.e(TAG, msg);
CONSTANCE.isDownloading = false;
stopDownload();
mListener.onFail();
}
@ -210,7 +209,7 @@ class DownloadUtil implements IDownloadUtil, Runnable {
+ mDownloadEntity.getDownloadUrl()
+ "\n【filePath:"
+ mDownloadFile.getPath()
+ ""
+ "\n"
+ CommonUtil.getPrintException(e));
}
}