prioritizes upload bandwidth to peers we are interested in and that have unchoked us

This commit is contained in:
Arvid Norberg 2007-03-28 19:11:30 +00:00
parent f1af5dc637
commit e8eb1ca96c
1 changed files with 3 additions and 2 deletions

View File

@ -1829,8 +1829,9 @@ namespace libtorrent
(*m_logger) << "req bandwidth [ " << upload_channel << " ]\n";
#endif
// the upload queue should not have non-prioritized peers
t->request_bandwidth(upload_channel, self(), false);
// peers that we are not interested in are non-prioritized
t->request_bandwidth(upload_channel, self()
, !(is_interesting() && !has_peer_choked()));
m_writing = true;
}
return;