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