* New Tracker API.

git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1002 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2007-11-02 10:47:12 +00:00
parent c326c7f43a
commit 4a2ae4d339
7 changed files with 32 additions and 36 deletions
+3 -3
View File
@@ -88,11 +88,11 @@ Download::enable_udp_trackers(bool state) {
torrent::TrackerList tl = m_download.tracker_list();
for (int i = 0, last = tl.size(); i < last; ++i)
if (tl.get(i).tracker_type() == torrent::Tracker::TRACKER_UDP)
if (tl.get(i)->type() == torrent::Tracker::TRACKER_UDP)
if (state)
tl.get(i).enable();
tl.get(i)->enable();
else
tl.get(i).disable();
tl.get(i)->disable();
}
uint32_t