mirror of
https://github.com/MaintainTeam/LastPipeBender.git
synced 2025-03-01 13:58:20 +03:00
check if last byte on block is downloaded
This commit is contained in:
parent
1bee297bba
commit
ecb4bfde0b
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ public class DownloadRunnable extends Thread {
|
||||||
byte[] buf = new byte[DownloadMission.BUFFER_SIZE];
|
byte[] buf = new byte[DownloadMission.BUFFER_SIZE];
|
||||||
int len;
|
int len;
|
||||||
|
|
||||||
while (start < end && mMission.running && (len = is.read(buf, 0, buf.length)) != -1) {
|
while (start <= end && mMission.running && (len = is.read(buf, 0, buf.length)) != -1) {
|
||||||
f.write(buf, 0, len);
|
f.write(buf, 0, len);
|
||||||
start += len;
|
start += len;
|
||||||
block.done += len;
|
block.done += len;
|
||||||
|
|
Loading…
Add table
Reference in a new issue