added assert to bandwidth_limiter

This commit is contained in:
Arvid Norberg 2007-08-24 02:12:07 +00:00
parent 6885361466
commit d963625949
1 changed files with 1 additions and 0 deletions

View File

@ -341,6 +341,7 @@ private:
{
assert(amount == limit - m_current_quota);
bw_queue_entry<PeerConnection> qe = m_queue.front();
assert(qe.max_bock_size > 0);
m_queue.pop_front();
shared_ptr<Torrent> t = qe.peer->associated_torrent().lock();