From 8989699e1ed1c1d9b681bc5696b2dc6a1ee3f667 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 27 Sep 2008 04:58:40 +0000 Subject: [PATCH] fixed invariant check when pausing a torrent --- src/torrent.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/torrent.cpp b/src/torrent.cpp index 84ebd3a25..3c235e965 100644 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -3080,7 +3080,8 @@ namespace libtorrent { session_impl::mutex_t::scoped_lock l(m_ses.m_mutex); - INVARIANT_CHECK; +// doesn't work with the m_paused -> m_num_peers == 0 condition +// INVARIANT_CHECK; while (!m_connections.empty()) {