From f3f90c1a0f1e3e73a488062d59169eda6ac0b619 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 16 Mar 2008 18:09:56 +0000 Subject: [PATCH] bandwidth limiter assertion fix --- include/libtorrent/bandwidth_manager.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/libtorrent/bandwidth_manager.hpp b/include/libtorrent/bandwidth_manager.hpp index edf1ecf44..4241ed6d9 100644 --- a/include/libtorrent/bandwidth_manager.hpp +++ b/include/libtorrent/bandwidth_manager.hpp @@ -270,6 +270,8 @@ private: mutex_t::scoped_lock l(m_mutex); INVARIANT_CHECK; + if (m_abort) return; + TORRENT_ASSERT(!m_history.empty()); ptime now(time_now());