mirror of
https://github.com/Maschell/JNUSLib.git
synced 2025-02-17 00:36:21 +01:00
Add a synchronized block to the WUD disc reading.
This commit is contained in:
parent
78b51226aa
commit
a16c1943c0
@ -58,6 +58,7 @@ public class WUDDiscReaderCompressed extends WUDDiscReader {
|
||||
byte[] buffer = new byte[bufferSize];
|
||||
|
||||
RandomAccessFile input = getRandomAccessFileStream();
|
||||
synchronized (input) {
|
||||
while (usedSize > 0) {
|
||||
long sectorOffset = (usedOffset % info.getSectorSize());
|
||||
long remainingSectorBytes = info.getSectorSize() - sectorOffset;
|
||||
@ -85,4 +86,5 @@ public class WUDDiscReaderCompressed extends WUDDiscReader {
|
||||
}
|
||||
input.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user