From d9636259491ce03e1a343fac56c82459e5279580 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Fri, 24 Aug 2007 02:12:07 +0000 Subject: [PATCH] added assert to bandwidth_limiter --- include/libtorrent/bandwidth_manager.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/libtorrent/bandwidth_manager.hpp b/include/libtorrent/bandwidth_manager.hpp index 99e06bfa7..fcc6a31cb 100644 --- a/include/libtorrent/bandwidth_manager.hpp +++ b/include/libtorrent/bandwidth_manager.hpp @@ -341,6 +341,7 @@ private: { assert(amount == limit - m_current_quota); bw_queue_entry qe = m_queue.front(); + assert(qe.max_bock_size > 0); m_queue.pop_front(); shared_ptr t = qe.peer->associated_torrent().lock();