mirror of
https://github.com/Maschell/JNUSLib.git
synced 2024-11-25 17:36:55 +01:00
Close the outputstream after reading from a WUX
This commit is contained in:
parent
95c6c085f6
commit
40cb09873d
@ -70,6 +70,7 @@ public class WUDDiscReaderCompressed extends WUDDiscReader {
|
||||
|
||||
input.seek(offset2);
|
||||
int read = input.read(buffer);
|
||||
|
||||
if (read < 0) return;
|
||||
try {
|
||||
out.write(Arrays.copyOfRange(buffer, 0, bytesToRead));
|
||||
@ -86,5 +87,8 @@ public class WUDDiscReaderCompressed extends WUDDiscReader {
|
||||
}
|
||||
input.close();
|
||||
}
|
||||
synchronized (out) {
|
||||
out.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user