fixed bug when setting unlimited upload or download rates for torrents
This commit is contained in:
@@ -53,6 +53,7 @@
|
||||
release 0.14.5
|
||||
|
||||
* fixed bug when handling malformed webseed urls and an http proxy
|
||||
* fixed bug when setting unlimited upload or download rates for torrents
|
||||
|
||||
release 0.14.4
|
||||
|
||||
|
@@ -4489,7 +4489,6 @@ namespace libtorrent
|
||||
{
|
||||
TORRENT_ASSERT(limit >= -1);
|
||||
if (limit <= 0) limit = 0;
|
||||
if (limit < num_peers() * 10) limit = num_peers() * 10;
|
||||
m_bandwidth_channel[peer_connection::upload_channel].throttle(limit);
|
||||
}
|
||||
|
||||
@@ -4504,7 +4503,6 @@ namespace libtorrent
|
||||
{
|
||||
TORRENT_ASSERT(limit >= -1);
|
||||
if (limit <= 0) limit = 0;
|
||||
if (limit < num_peers() * 10) limit = num_peers() * 10;
|
||||
m_bandwidth_channel[peer_connection::download_channel].throttle(limit);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user