From 07ad5d9796da81a4dac94b305f1a15b7d647dc11 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 10 Dec 2007 18:13:57 +0000 Subject: [PATCH] bandwidth_manager assert fix --- include/libtorrent/bandwidth_manager.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/libtorrent/bandwidth_manager.hpp b/include/libtorrent/bandwidth_manager.hpp index ecb065a9d..da251cf4b 100644 --- a/include/libtorrent/bandwidth_manager.hpp +++ b/include/libtorrent/bandwidth_manager.hpp @@ -111,7 +111,7 @@ struct bandwidth_limit void assign(int amount) throw() { - TORRENT_ASSERT(amount > 0); + TORRENT_ASSERT(amount >= 0); m_current_rate += amount; m_quota_left += amount; }