mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-06 22:29:23 +00:00
* Added interface for changing download priority.
* More throttle fiddling. * Pop the currently uploaded piece from the send list. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@591 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -52,10 +52,13 @@ Download::Download() :
|
||||
|
||||
void
|
||||
Download::start() {
|
||||
if (is_done())
|
||||
if (is_done()) {
|
||||
m_download.set_connection_type(m_connectionSeed);
|
||||
else
|
||||
torrent::download_set_priority(m_download, 2);
|
||||
} else {
|
||||
m_download.set_connection_type(m_connectionLeech);
|
||||
torrent::download_set_priority(m_download, 4);
|
||||
}
|
||||
|
||||
m_download.start();
|
||||
}
|
||||
@@ -98,6 +101,7 @@ Download::release_download() {
|
||||
void
|
||||
Download::receive_finished() {
|
||||
m_download.set_connection_type(m_connectionSeed);
|
||||
torrent::download_set_priority(m_download, 2);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user