Skip to content

Commit

Permalink
[Fix] Fix fallback to input stream when reading archives.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanghai committed Sep 10, 2023
1 parent f80790d commit b2ede22
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit b2ede22

Please sign in to comment.