From b2ede22bb857906612d10274e7a191dad149b6e9 Mon Sep 17 00:00:00 2001 From: Hai Zhang Date: Sun, 10 Sep 2023 01:06:18 -0700 Subject: [PATCH] [Fix] Fix fallback to input stream when reading archives. --- .../android/files/provider/archive/archiver/ArchiveReader.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/me/zhanghai/android/files/provider/archive/archiver/ArchiveReader.kt b/app/src/main/java/me/zhanghai/android/files/provider/archive/archiver/ArchiveReader.kt index 96b46e560..5e3989e87 100644 --- a/app/src/main/java/me/zhanghai/android/files/provider/archive/archiver/ArchiveReader.kt +++ b/app/src/main/java/me/zhanghai/android/files/provider/archive/archiver/ArchiveReader.kt @@ -141,6 +141,8 @@ object ArchiveReader { val archive = ReadArchive(channel) successful = true return archive to ArchiveCloseable(archive, channel) + } catch (e: IOException) { + e.printStackTrace() } finally { if (!successful) { channel.close()