fix: ensure torrent download does not finish too early
This commit is contained in:
parent
057c7915f4
commit
ffc9aea24f
|
@ -1953,7 +1953,9 @@ func (m *Manager) DownloadHistoryArchivesByMagnetlink(communityID types.HexBytes
|
|||
break
|
||||
}
|
||||
done = torrent.PieceState(i).Complete
|
||||
i++
|
||||
if done {
|
||||
i++
|
||||
}
|
||||
}
|
||||
if done {
|
||||
psc.Close()
|
||||
|
|
Loading…
Reference in New Issue