Skip to content

Commit

Permalink
Improve jar resources' release robustness
Browse files Browse the repository at this point in the history
  • Loading branch information
kpapakyriakos authored Jul 17, 2023
1 parent de112b9 commit 5f6fe61
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,11 @@ public void close() {
final JarFile zipFileLocal = this.zipFile;
if (zipFileLocal != null) {
try {
this.zipFile = null;
zipFileLocal.close();
} catch (IOException e) {
} catch (Throwable e) {
//ignore
}
this.zipFile = null;
}
} finally {
writeLock.unlock();
Expand Down

0 comments on commit 5f6fe61

Please sign in to comment.