mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-08 11:12:31 +00:00
* New Tracker API.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1002 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -126,9 +126,9 @@ apply_enable_trackers(int64_t arg) {
|
||||
|
||||
for (int i = 0, last = tl.size(); i < last; ++i)
|
||||
if (arg)
|
||||
tl.get(i).enable();
|
||||
tl.get(i)->enable();
|
||||
else
|
||||
tl.get(i).disable();
|
||||
tl.get(i)->disable();
|
||||
|
||||
if (arg && !rpc::call_command_value("get_use_udp_trackers"))
|
||||
(*itr)->enable_udp_trackers(false);
|
||||
@@ -149,11 +149,7 @@ xmlrpc_find_tracker(core::Download* download, uint32_t index) {
|
||||
if (index >= download->tracker_list()->size())
|
||||
return NULL;
|
||||
|
||||
// HACK ALERT!!!!
|
||||
static torrent::Tracker hack;
|
||||
hack = download->tracker_list()->get(index);
|
||||
|
||||
return &hack;
|
||||
return download->tracker_list()->get(index);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user