From 4554e06837d9c61c76ff5aa92eb2ad2af7dbd89d Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Tue, 9 Jun 2009 19:33:18 +0000 Subject: [PATCH] fixed bug when setting unlimited upload or download rates for torrents --- ChangeLog | 1 + src/torrent.cpp | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index ee2932ecc..8ee14789a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/src/torrent.cpp b/src/torrent.cpp index 939557309..ac14847aa 100644 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -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); }