]> Sergey Matveev's repositories - btrtrc.git/blobdiff - torrent.go
Fixes for cmd/torrent with the new torrent.Info field
[btrtrc.git] / torrent.go
index e051d8b96df3e7cb8690d0fd79eae02efcea86a3..18ddc6db8bb22005bed6cba1412a8a7128490ff9 100644 (file)
@@ -279,7 +279,7 @@ func (t *torrent) HashPiece(piece pp.Integer) (ps pieceSum) {
        return
 }
 func (t *torrent) haveAllPieces() bool {
-       if t.Info == nil {
+       if !t.haveInfo() {
                return false
        }
        for _, piece := range t.Pieces {