fixed bug with the bandwidth throttling
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user