Merge pull request #13014 from jloutsch/fix/download-resume-corruption
Fix download resume corruption when server returns HTTP 200
This commit is contained in:
commit
84c960246e
1 changed files with 1 additions and 0 deletions
|
|
@ -85,6 +85,7 @@ public class DownloadRunnableFallback extends Thread {
|
||||||
if (mMission.unknownLength || mConn.getResponseCode() == 200) {
|
if (mMission.unknownLength || mConn.getResponseCode() == 200) {
|
||||||
// restart amount of bytes downloaded
|
// restart amount of bytes downloaded
|
||||||
mMission.done = mMission.offsets[mMission.current] - mMission.offsets[0];
|
mMission.done = mMission.offsets[mMission.current] - mMission.offsets[0];
|
||||||
|
start = 0; // reset position to avoid writing at wrong offset
|
||||||
}
|
}
|
||||||
|
|
||||||
mF = mMission.storage.getStream();
|
mF = mMission.storage.getStream();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue