mirror of
https://github.com/corda/corda.git
synced 2025-06-18 23:28:21 +00:00
Fix RAF
This commit is contained in:
committed by
Alexey Pelykh
parent
57f4463c4c
commit
eea079ea70
@ -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);
|
||||||
|
Reference in New Issue
Block a user