修复小文件下载失败问题

pull/969/head
MrFeng 2 years ago
parent aa292e4389
commit 2649415f3b
  1. 2
      HttpComponent/src/main/java/com/arialyy/aria/http/download/HttpDThreadTaskAdapter.java

@ -131,6 +131,7 @@ final class HttpDThreadTaskAdapter extends BaseHttpThreadTaskAdapter {
} finally {
try {
if (file != null) {
file.flush();
file.close();
}
if (is != null) {
@ -173,6 +174,7 @@ final class HttpDThreadTaskAdapter extends BaseHttpThreadTaskAdapter {
} finally {
if (fos != null) {
try {
fos.flush();
fos.close();
} catch (IOException e) {
e.printStackTrace();

Loading…
Cancel
Save