mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-12 21:22:31 +00:00
* Properly handle NULL ptr in target_any commands.
* Enable PEX by default. * Renamed Download::start2/stop2. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1006 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -253,7 +253,7 @@ DownloadList::close_try(Download* download) {
|
||||
void
|
||||
DownloadList::close_directly(Download* download) {
|
||||
if (download->download()->is_active()) {
|
||||
download->download()->stop2(torrent::Download::stop_skip_tracker);
|
||||
download->download()->stop(torrent::Download::stop_skip_tracker);
|
||||
torrent::resume_save_progress(*download->download(), download->download()->bencode()->get_key("libtorrent_resume"));
|
||||
}
|
||||
|
||||
@@ -407,7 +407,7 @@ DownloadList::resume(Download* download, int flags) {
|
||||
// Update the priority to ensure it has the correct
|
||||
// seeding/unfinished modifiers.
|
||||
download->set_priority(download->priority());
|
||||
download->download()->start2(download->resume_flags());
|
||||
download->download()->start(download->resume_flags());
|
||||
|
||||
download->set_resume_flags(~uint32_t());
|
||||
|
||||
@@ -438,7 +438,7 @@ DownloadList::pause(Download* download, int flags) {
|
||||
if (!download->download()->is_active())
|
||||
return;
|
||||
|
||||
download->download()->stop2(flags);
|
||||
download->download()->stop(flags);
|
||||
torrent::resume_save_progress(*download->download(), download->download()->bencode()->get_key("libtorrent_resume"));
|
||||
|
||||
std::for_each(slot_map_stop().begin(), slot_map_stop().end(), download_list_call(download));
|
||||
|
||||
Reference in New Issue
Block a user