torrent.go | 2 +- diff --git a/torrent.go b/torrent.go index 79a3ecb65ddd7a3064ad5b244eb5f72d48da5a86..d047be4ed44c1a925699ac6f61e3a3dec7e623fe 100644 --- a/torrent.go +++ b/torrent.go @@ -908,7 +908,7 @@ return } func (t *Torrent) haveAnyPieces() bool { - return t._completedPieces.GetCardinality() != 0 + return !t._completedPieces.IsEmpty() } func (t *Torrent) haveAllPieces() bool {