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