Close the outputstream after reading from a WUX

This commit is contained in:
Maschell 2019-04-10 18:13:25 +02:00
parent 95c6c085f6
commit 40cb09873d

View File

@ -70,6 +70,7 @@ public class WUDDiscReaderCompressed extends WUDDiscReader {
input.seek(offset2); input.seek(offset2);
int read = input.read(buffer); int read = input.read(buffer);
if (read < 0) return; if (read < 0) return;
try { try {
out.write(Arrays.copyOfRange(buffer, 0, bytesToRead)); out.write(Arrays.copyOfRange(buffer, 0, bytesToRead));
@ -86,5 +87,8 @@ public class WUDDiscReaderCompressed extends WUDDiscReader {
} }
input.close(); input.close();
} }
synchronized (out) {
out.close();
}
} }
} }