From: Matt Joiner Date: Mon, 14 Jul 2014 13:12:15 +0000 (+1000) Subject: Client would attempt to download if unchoked before the metadata is available X-Git-Tag: v1.0.0~1672 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=61b87222d4b6211b55bc88648aaf5c33eef02790;p=btrtrc.git Client would attempt to download if unchoked before the metadata is available --- diff --git a/client.go b/client.go index 831007af..47bc5b6d 100644 --- a/client.go +++ b/client.go @@ -1041,6 +1041,9 @@ func (cl *Client) assertRequestHeat() { } func (me *Client) replenishConnRequests(t *torrent, c *connection) { + if !t.haveInfo() { + return + } me.DownloadStrategy.FillRequests(t, c) //me.assertRequestHeat() if len(c.Requests) == 0 && !c.PeerChoked {