From 2649415f3b7b7a25e08177626e1da270f4c78e97 Mon Sep 17 00:00:00 2001 From: MrFeng Date: Wed, 17 Aug 2022 16:32:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B0=8F=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E5=A4=B1=E8=B4=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/arialyy/aria/http/download/HttpDThreadTaskAdapter.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/HttpComponent/src/main/java/com/arialyy/aria/http/download/HttpDThreadTaskAdapter.java b/HttpComponent/src/main/java/com/arialyy/aria/http/download/HttpDThreadTaskAdapter.java index 676c38c3..b2851c20 100644 --- a/HttpComponent/src/main/java/com/arialyy/aria/http/download/HttpDThreadTaskAdapter.java +++ b/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();