From 6650a34cfd6add5556d206179e332e0c362c2bff Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 15 Jul 2007 14:20:55 +0000 Subject: [PATCH] fixed #83 --- include/libtorrent/bandwidth_manager.hpp | 4 ---- src/torrent.cpp | 2 -- 2 files changed, 6 deletions(-) diff --git a/include/libtorrent/bandwidth_manager.hpp b/include/libtorrent/bandwidth_manager.hpp index 30f99d0cf..a1bc0ffa8 100644 --- a/include/libtorrent/bandwidth_manager.hpp +++ b/include/libtorrent/bandwidth_manager.hpp @@ -391,10 +391,6 @@ private: break; } - // don't hand out chunks larger than the throttle - // per second on the torrent - assert(qe.max_block_size <= t->bandwidth_throttle(m_channel)); - // so, hand out max_assignable, but no more than // the available bandwidth (amount) and no more // than the max_bandwidth_block_size diff --git a/src/torrent.cpp b/src/torrent.cpp index db51d90f1..fb2e29ce5 100755 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -2010,8 +2010,6 @@ namespace libtorrent , int block_size , bool non_prioritized) { - assert(m_bandwidth_limit[channel].max_assignable() >= block_size); - m_ses.m_bandwidth_manager[channel]->request_bandwidth(p , block_size, non_prioritized); m_bandwidth_limit[channel].assign(block_size);