]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Adding a torrent without info after waitAccept has blocked wouldn't trigger further...
authorMatt Joiner <anacrolix@gmail.com>
Sun, 3 Apr 2016 12:06:25 +0000 (22:06 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Sun, 3 Apr 2016 12:06:25 +0000 (22:06 +1000)
client.go

index 134748d41b2e4972eec6c8a379142c85095366bb..9c4f587b47e6b850ff43d02d4ff4bc2fdc64720a 100644 (file)
--- 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.