fix: ensure torrent download does not finish too early

This commit is contained in:
Pascal Precht 2022-10-05 12:38:14 +02:00 committed by r4bbit.eth
parent 057c7915f4
commit ffc9aea24f
1 changed files with 3 additions and 1 deletions

View File

@ -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