forked from premiere/premiere-libtorrent
fixed bug when setting unlimited upload or download rates for torrents
This commit is contained in:
parent
d263526246
commit
4554e06837
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue