From de2859d9b0c9e3cac57e63cfd3d1ece3ac59936c Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 21 Sep 2008 23:23:52 +0000 Subject: [PATCH] fixed incorrect assert --- src/session_impl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/session_impl.cpp b/src/session_impl.cpp index 3a7c5d22e..13e0fb75b 100644 --- a/src/session_impl.cpp +++ b/src/session_impl.cpp @@ -1786,7 +1786,8 @@ namespace aux { { if (m_abort) return; TORRENT_ASSERT(!t->is_paused() || t->is_auto_managed()); - TORRENT_ASSERT(t->state() == torrent_status::checking_files); + TORRENT_ASSERT(t->state() == torrent_status::checking_files + || t->state() == torrent_status::queued_for_checking); if (m_queued_for_checking.empty()) t->start_checking(); TORRENT_ASSERT(std::find(m_queued_for_checking.begin() , m_queued_for_checking.end(), t) == m_queued_for_checking.end());