added an assert to bandwidth limiter

This commit is contained in:
Arvid Norberg 2007-07-15 14:24:06 +00:00
parent 6650a34cfd
commit 96430f5edd
1 changed files with 1 additions and 0 deletions

View File

@ -398,6 +398,7 @@ private:
, amount);
assert(hand_out_amount > 0);
amount -= hand_out_amount;
assert(hand_out_amount <= qe.max_block_size);
t->assign_bandwidth(m_channel, hand_out_amount, qe.max_block_size);
qe.peer->assign_bandwidth(m_channel, hand_out_amount);
add_history_entry(history_entry<PeerConnection, Torrent>(