fixed bug with the bandwidth throttling
This commit is contained in:
parent
4edfaa0493
commit
978fe778ec
|
@ -60,6 +60,8 @@ namespace libtorrent
|
|||
{
|
||||
assert(given <= max);
|
||||
assert(given >= min);
|
||||
if (used < 0 && (given - used < 0))
|
||||
return boost::integer_traits<int>::const_max;
|
||||
return given - used;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue