From: Matt Joiner Date: Thu, 17 Aug 2017 15:44:20 +0000 (+1000) Subject: No longer wanting a piece wasn't triggering an update of connection request state X-Git-Tag: v1.0.0~443 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=4adee001f77a70c01b328084f8997815286fdb35;p=btrtrc.git No longer wanting a piece wasn't triggering an update of connection request state Pretty minor, but it would leave connections hanging in the interested state. --- diff --git a/connection.go b/connection.go index 575917bc..39fc46cb 100644 --- a/connection.go +++ b/connection.go @@ -528,6 +528,7 @@ func (c *connection) requestPiecePendingChunks(piece int) (again bool) { func (cn *connection) stopRequestingPiece(piece int) { cn.pieceRequestOrder.Remove(piece) + cn.updateRequests() } // This is distinct from Torrent piece priority, which is the user's