]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Remove redundant replenishConnRequests when receiving unchoke
authorMatt Joiner <anacrolix@gmail.com>
Fri, 23 May 2014 11:02:42 +0000 (21:02 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Fri, 23 May 2014 11:02:42 +0000 (21:02 +1000)
client.go

index 49e80cf4f7e55db1b22ee3a2e2148ccabb2e138a..7d3eb7ebb17424d48daf1c1e45616b07a43e1df3 100644 (file)
--- a/client.go
+++ b/client.go
@@ -407,7 +407,6 @@ func (me *Client) connectionLoop(t *torrent, c *connection) error {
                case pp.Unchoke:
                        c.PeerChoked = false
                        me.peerUnchoked(t, c)
-                       me.replenishConnRequests(t, c)
                case pp.Interested:
                        c.PeerInterested = true
                        // TODO: This should be done from a dedicated unchoking routine.