mirror of
https://github.com/Maschell/JNUSLib.git
synced 2024-07-01 21:36:04 +02: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…
Reference in New Issue
Block a user