From 9ecfbd17e63b9e7c8d6ff950e87ccd761f88d380 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 7 Mar 2011 03:51:52 +0000 Subject: [PATCH] prioritize trackers after adding the initial tracker --- src/torrent.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/torrent.cpp b/src/torrent.cpp index b79059bc2..0ef7fcdfb 100644 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -514,9 +514,6 @@ namespace libtorrent if (p.resume_data) m_resume_data.swap(*p.resume_data); - if (settings().prefer_udp_trackers) - prioritize_udp_trackers(); - #ifndef TORRENT_DISABLE_ENCRYPTION hasher h; h.update("req2", 4); @@ -538,6 +535,9 @@ namespace libtorrent m_trackers.back().source = announce_entry::source_magnet_link; m_torrent_file->add_tracker(p.tracker_url); } + + if (settings().prefer_udp_trackers) + prioritize_udp_trackers(); } #if 1