forked from premiere/premiere-libtorrent
added an assert to bandwidth limiter
This commit is contained in:
parent
6650a34cfd
commit
96430f5edd
|
@ -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>(
|
||||
|
|
Loading…
Reference in New Issue