From: Matt Joiner Date: Fri, 23 May 2014 11:02:42 +0000 (+1000) Subject: Remove redundant replenishConnRequests when receiving unchoke X-Git-Tag: v1.0.0~1728 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=f455ee386804a91cf64a587813246490559c2460;p=btrtrc.git Remove redundant replenishConnRequests when receiving unchoke --- diff --git a/client.go b/client.go index 49e80cf4..7d3eb7eb 100644 --- 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.