fixed bug when setting unlimited upload or download rates for torrents

This commit is contained in:
Arvid Norberg 2009-06-09 19:33:18 +00:00
parent d263526246
commit 4554e06837
2 changed files with 1 additions and 2 deletions

View File

@ -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

View File

@ -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);
}