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());