mirror of
https://github.com/corda/corda.git
synced 2025-01-04 04:04:27 +00:00
Fix RAF
This commit is contained in:
parent
f1b2b3f78d
commit
c8ca83836a
@ -108,7 +108,8 @@ public class RandomAccessFile {
|
||||
int n = 0;
|
||||
do {
|
||||
int count = readBytes(peer, position, b, off + n, len - n);
|
||||
if (count < 0)
|
||||
position += count;
|
||||
if (count == 0)
|
||||
throw new EOFException();
|
||||
n += count;
|
||||
} while (n < len);
|
||||
|
Loading…
Reference in New Issue
Block a user