From: Matt Joiner Date: Tue, 22 Oct 2013 07:03:27 +0000 (+1100) Subject: If no requests can be found for a connection, set it to uninterested X-Git-Tag: v1.0.0~1790 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=ec0ffa84a49e5cbeb7e1f2f671436bcb2c32230c;p=btrtrc.git If no requests can be found for a connection, set it to uninterested --- 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) {