1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2026-05-28 08:12:11 +00:00

Merge pull request #13014 from jloutsch/fix/download-resume-corruption

Fix download resume corruption when server returns HTTP 200
This commit is contained in:
Tobi
2026-01-08 19:05:49 -08:00
committed by GitHub
@@ -85,6 +85,7 @@ public class DownloadRunnableFallback extends Thread {
if (mMission.unknownLength || mConn.getResponseCode() == 200) {
// restart amount of bytes downloaded
mMission.done = mMission.offsets[mMission.current] - mMission.offsets[0];
start = 0; // reset position to avoid writing at wrong offset
}
mF = mMission.storage.getStream();