Skip to content

Commit

Permalink
Change order of file closing on correct loaction again
Browse files Browse the repository at this point in the history
  • Loading branch information
anneferger authored Jun 6, 2024
1 parent 6c0408a commit 2aca34e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/pl/psnc/dl/ege/tei/TEIConverter.java
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,6 @@ private void generateRngThenTrang(InputStream inputStream,
e.printStackTrace();

}
ior.compressData(outTempDir, outputStream);
} finally {
try {
is.close();
Expand All @@ -686,6 +685,7 @@ private void generateRngThenTrang(InputStream inputStream,
} catch (Exception ex) {
// do nothing
}
ior.compressData(outTempDir, outputStream);
if (outTempDir != null && outTempDir.exists())
EGEIOUtils.deleteDirectory(outTempDir);
if (inTmpDir != null && inTmpDir.exists())
Expand Down

0 comments on commit 2aca34e

Please sign in to comment.