]> Sergey Matveev's repositories - btrtrc.git/commitdiff
If no requests can be found for a connection, set it to uninterested
authorMatt Joiner <anacrolix@gmail.com>
Tue, 22 Oct 2013 07:03:27 +0000 (18:03 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Tue, 22 Oct 2013 07:03:27 +0000 (18:03 +1100)
client.go

index 9dcd3eeed2f62c6bf7732c46a48ff0c5fd590514..322a21514db0a4f73059c57a91cbb49a4901b817 100644 (file)
--- 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) {