From 4adee001f77a70c01b328084f8997815286fdb35 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Fri, 18 Aug 2017 01:44:20 +1000 Subject: [PATCH] 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. --- connection.go | 1 + 1 file changed, 1 insertion(+) 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