torrent.go | 4 ++-- diff --git a/torrent.go b/torrent.go index c09a4d0b3eb8016c052941039712eb936f6732e4..84691af65ca0a8ee10699981269841566cc53427 100644 --- a/torrent.go +++ b/torrent.go @@ -950,7 +950,7 @@ t.pendingPieces.Add(piece) t.updatePiecePriority(piece) } -func (t *Torrent) unpendPieces(unpend *bitmap.Bitmap) { +func (t *Torrent) unpendPieces(unpend bitmap.Bitmap) { t.pendingPieces.Sub(unpend) unpend.IterTyped(func(piece int) (again bool) { t.updatePiecePriority(piece) @@ -967,7 +967,7 @@ func (t *Torrent) unpendPieceRange(begin, end int) { var bm bitmap.Bitmap bm.AddRange(begin, end) - t.unpendPieces(&bm) + t.unpendPieces(bm) } func (t *Torrent) pendRequest(req request) {