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,7 +1953,9 @@ func (m *Manager) DownloadHistoryArchivesByMagnetlink(communityID types.HexBytes
break
}
done = torrent.PieceState(i).Complete
i++
if done {
i++
}
}
if done {
psc.Close()