diff --git a/client.go b/client.go index c7507932..2fff46a9 100644 --- a/client.go +++ b/client.go @@ -274,7 +274,7 @@ func (cl *Client) readRaisePiecePriorities(t *torrent, off, _len int64) { return } cl.raisePiecePriority(t, index, piecePriorityNext) - for i := 0; i < 3; i++ { + for i := 0; i < t.numConnsUnchoked()/2; i++ { index++ if index >= t.numPieces() { break