forked from premiere/premiere-libtorrent
fixed #83
This commit is contained in:
parent
245793b7a3
commit
6650a34cfd
|
@ -391,10 +391,6 @@ private:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// don't hand out chunks larger than the throttle
|
|
||||||
// per second on the torrent
|
|
||||||
assert(qe.max_block_size <= t->bandwidth_throttle(m_channel));
|
|
||||||
|
|
||||||
// so, hand out max_assignable, but no more than
|
// so, hand out max_assignable, but no more than
|
||||||
// the available bandwidth (amount) and no more
|
// the available bandwidth (amount) and no more
|
||||||
// than the max_bandwidth_block_size
|
// than the max_bandwidth_block_size
|
||||||
|
|
|
@ -2010,8 +2010,6 @@ namespace libtorrent
|
||||||
, int block_size
|
, int block_size
|
||||||
, bool non_prioritized)
|
, bool non_prioritized)
|
||||||
{
|
{
|
||||||
assert(m_bandwidth_limit[channel].max_assignable() >= block_size);
|
|
||||||
|
|
||||||
m_ses.m_bandwidth_manager[channel]->request_bandwidth(p
|
m_ses.m_bandwidth_manager[channel]->request_bandwidth(p
|
||||||
, block_size, non_prioritized);
|
, block_size, non_prioritized);
|
||||||
m_bandwidth_limit[channel].assign(block_size);
|
m_bandwidth_limit[channel].assign(block_size);
|
||||||
|
|
Loading…
Reference in New Issue