mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-08 09:30:27 +00:00
fix(http): resume ranged downloads with unknown size (#1467)
This commit is contained in:
4 files changed
+578
-54
No files matched your search
@@ -138,6 +138,10 @@ func snapshotConnectionsLocked(connections []*connection) []*connection {
|
||||
}
|
||||
if conn.Chunk != nil {
|
||||
copyChunk := *conn.Chunk
|
||||
if conn.Chunk.End != nil {
|
||||
end := *conn.Chunk.End
|
||||
copyChunk.End = &end
|
||||
}
|
||||
copyConn.Chunk = ©Chunk
|
||||
}
|
||||
snapshot[i] = copyConn
|
||||
|
||||
Reference in new issue
Block a user