From 1a401e82f5ff58f0621e864723dbfdd229bff53c Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Fri, 21 Nov 2014 00:10:52 -0600 Subject: [PATCH] Merge trackers by magnet links if the torrent is already present --- client.go | 1 + 1 file changed, 1 insertion(+) 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) -- 2.48.1