cmd/torrent-verify now needs to call InitIndex
This commit is contained in:
parent
563a09cc47
commit
3cbdf4aa98
@ -46,6 +46,7 @@ func verifyTorrent(info *metainfo.Info, root string) error {
|
||||
}
|
||||
span.Append(mm)
|
||||
}
|
||||
span.InitIndex()
|
||||
for i := range iter.N(info.NumPieces()) {
|
||||
p := info.Piece(i)
|
||||
hash := sha1.New()
|
||||
|
Loading…
x
Reference in New Issue
Block a user