From: Matt Joiner Date: Fri, 21 Nov 2014 06:10:52 +0000 (-0600) Subject: Merge trackers by magnet links if the torrent is already present X-Git-Tag: v1.0.0~1484 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=1a401e82f5ff58f0621e864723dbfdd229bff53c;p=btrtrc.git Merge trackers by magnet links if the torrent is already present --- diff --git a/client.go b/client.go index 75a04fb1..304b0967 100644 --- a/client.go +++ b/client.go @@ -1337,6 +1337,7 @@ func (cl *Client) AddMagnet(uri string) (t Torrent, err error) { defer cl.mu.Unlock() t.torrent = cl.torrent(m.InfoHash) if t.torrent != nil { + t.addTrackers([][]string{m.Trackers}) return } t.torrent, err = newTorrent(m.InfoHash, [][]string{m.Trackers}, cl.halfOpenLimit)