From 00f33c848e91f932b6e5afb25bb24181777205dd Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Sun, 3 Apr 2016 22:06:25 +1000 Subject: [PATCH] Adding a torrent without info after waitAccept has blocked wouldn't trigger further accepts immediately --- client.go | 1 + 1 file changed, 1 insertion(+) 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. -- 2.48.1