From: Matt Joiner Date: Sun, 3 Apr 2016 12:06:25 +0000 (+1000) Subject: Adding a torrent without info after waitAccept has blocked wouldn't trigger further... X-Git-Tag: v1.0.0~793 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=00f33c848e91f932b6e5afb25bb24181777205dd;p=btrtrc.git Adding a torrent without info after waitAccept has blocked wouldn't trigger further accepts immediately --- diff --git a/client.go b/client.go index 134748d4..9c4f587b 100644 --- a/client.go +++ b/client.go @@ -1974,6 +1974,7 @@ func (cl *Client) AddTorrentSpec(spec *TorrentSpec) (t *Torrent, new bool, err e t.addTrackers(spec.Trackers) cl.torrents[spec.InfoHash] = t + t.maybeNewConns() // From this point onwards, we can consider the torrent a part of the // client.