mirror of
https://github.com/Maschell/JNUSLib.git
synced 2024-06-29 12:26:03 +02:00
Close file properly on compressWUDToWUX function
This commit is contained in:
parent
254d16a584
commit
03181f6078
|
@ -92,6 +92,7 @@ public final class WUDService {
|
|||
|
||||
log.info("Writing compressed file to: " + outputFile.getAbsolutePath());
|
||||
RandomAccessFile fileOutput = new RandomAccessFile(outputFile, "rw");
|
||||
try {
|
||||
|
||||
WUDImageCompressedInfo info = WUDImageCompressedInfo.getDefaultCompressedInfo();
|
||||
|
||||
|
@ -163,7 +164,9 @@ public final class WUDService {
|
|||
}
|
||||
|
||||
fileOutput.write(buffer.array());
|
||||
} finally {
|
||||
fileOutput.close();
|
||||
}
|
||||
|
||||
return Optional.of(outputFile);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user