torrent.go | 4 ++-- diff --git a/torrent.go b/torrent.go index dd3a83cfabd78e0a281317d83e09a8ba2a0e0560..ff8f772f5d575facdac873b366840051f9d89793 100644 --- a/torrent.go +++ b/torrent.go @@ -424,10 +424,10 @@ } else { return "?" } }()) - if t.haveInfo() { + if t.Info() != nil { fmt.Fprintf(w, "Num Pieces: %d\n", t.numPieces()) fmt.Fprint(w, "Piece States:") - for _, psr := range t.pieceStateRuns() { + for _, psr := range t.PieceStateRuns() { w.Write([]byte(" ")) w.Write([]byte(pieceStateRunStatusChars(psr))) }