From ec0ffa84a49e5cbeb7e1f2f671436bcb2c32230c Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Tue, 22 Oct 2013 18:03:27 +1100 Subject: [PATCH] If no requests can be found for a connection, set it to uninterested --- client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/client.go b/client.go index 9dcd3eee..322a2151 100644 --- a/client.go +++ b/client.go @@ -818,6 +818,7 @@ func (me *Client) replenishConnRequests(torrent *Torrent, conn *Connection) { } } } + conn.SetInterested(false) } func (me *Client) downloadedChunk(torrent *Torrent, msg *peer_protocol.Message) (err error) { -- 2.48.1