From 5b5ecb8f3bbcbfce1db53b46d5643d125717209a Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Wed, 10 Feb 2016 00:47:53 +1100 Subject: [PATCH] Still update a connections piece priority even if the peer doesn't have the piece --- connection.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/connection.go b/connection.go index a140e24c..85f99e79 100644 --- a/connection.go +++ b/connection.go @@ -585,10 +585,10 @@ func (c *connection) stopRequestingPiece(piece int) { } func (c *connection) updatePiecePriority(piece int) { + tpp := c.t.piecePriority(piece) if !c.PeerHasPiece(piece) { - return + tpp = PiecePriorityNone } - tpp := c.t.piecePriority(piece) if tpp == PiecePriorityNone { c.stopRequestingPiece(piece) return -- 2.48.1