From 3cb61809ceb49b7b53c851dc86820afb2836dfd3 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 14 Dec 2008 11:10:54 +0000 Subject: [PATCH] fixed invariant check in bandwidth_manager --- 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 0a4b42a40..f4a01665f 100644 --- a/include/libtorrent/bandwidth_manager.hpp +++ b/include/libtorrent/bandwidth_manager.hpp @@ -247,6 +247,7 @@ struct bandwidth_manager typename queue_t::const_iterator j = m_queue.begin(); if (j != m_queue.end()) { + bytes += j->max_block_size; ++j; for (typename queue_t::const_iterator i = m_queue.begin() , end(m_queue.end()); i != end && j != end; ++i, ++j)