piece picker fix and bandwidth_limiter typo fix
This commit is contained in:
parent
d963625949
commit
c0ffdc51c7
|
@ -341,7 +341,7 @@ private:
|
|||
{
|
||||
assert(amount == limit - m_current_quota);
|
||||
bw_queue_entry<PeerConnection> qe = m_queue.front();
|
||||
assert(qe.max_bock_size > 0);
|
||||
assert(qe.max_block_size > 0);
|
||||
m_queue.pop_front();
|
||||
|
||||
shared_ptr<Torrent> t = qe.peer->associated_torrent().lock();
|
||||
|
|
|
@ -645,6 +645,7 @@ namespace libtorrent
|
|||
if (j->finished + j->writing >= complete) return;
|
||||
using std::swap;
|
||||
swap(*j, *i);
|
||||
if (j == m_downloads.begin()) break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue