piece picker fix and bandwidth_limiter typo fix

This commit is contained in:
Arvid Norberg 2007-08-25 05:09:25 +00:00
parent d963625949
commit c0ffdc51c7
2 changed files with 2 additions and 1 deletions

View File

@ -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();

View File

@ -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;
}
}