修复小文件下载失败问题

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

Loading…
Cancel
Save