downloader: nil ptr verify (#5833)

This commit is contained in:
Alex Sharov 2022-10-22 11:52:05 +07:00 committed by GitHub
parent f2eee19de0
commit 8641d81511
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -208,6 +208,7 @@ func (d *Downloader) verify() error {
wg.Add(1)
go func(t *torrent.Torrent) {
defer wg.Done()
<-t.GotInfo()
for i := 0; i < t.NumPieces(); i++ {
j.Inc()
t.Piece(i).VerifyData()