From 61b87222d4b6211b55bc88648aaf5c33eef02790 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Mon, 14 Jul 2014 23:12:15 +1000 Subject: [PATCH] Client would attempt to download if unchoked before the metadata is available --- client.go | 3 +++ 1 file changed, 3 insertions(+) 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 { -- 2.48.1