mirror of
https://github.com/Maschell/JNUSLib.git
synced 2024-11-30 03:44: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];
|
byte[] buffer = new byte[bufferSize];
|
||||||
|
|
||||||
RandomAccessFile input = getRandomAccessFileStream();
|
RandomAccessFile input = getRandomAccessFileStream();
|
||||||
|
synchronized (input) {
|
||||||
while (usedSize > 0) {
|
while (usedSize > 0) {
|
||||||
long sectorOffset = (usedOffset % info.getSectorSize());
|
long sectorOffset = (usedOffset % info.getSectorSize());
|
||||||
long remainingSectorBytes = info.getSectorSize() - sectorOffset;
|
long remainingSectorBytes = info.getSectorSize() - sectorOffset;
|
||||||
@ -85,4 +86,5 @@ public class WUDDiscReaderCompressed extends WUDDiscReader {
|
|||||||
}
|
}
|
||||||
input.close();
|
input.close();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user