From 77cea2eafc54b022812eba678d43a69c6799a384 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Tue, 27 Nov 2007 02:46:19 +0000 Subject: [PATCH] added more asserts in session_impl::check_invariant --- src/session_impl.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/session_impl.cpp b/src/session_impl.cpp index fdb77e94d..833d49777 100755 --- a/src/session_impl.cpp +++ b/src/session_impl.cpp @@ -2419,6 +2419,11 @@ namespace detail { TORRENT_ASSERT(false); } + for (std::map >::const_iterator j + = m_torrents.begin(); j != m_torrents.end(); ++j) + { + TORRENT_ASSERT(boost::get_pointer(j->second)); + } } #endif