don't start the next checking torrent when the session is paused

This commit is contained in:
Arvid Norberg 2011-04-28 07:54:57 +00:00
parent c4761e3922
commit 58ea6f5b3c
1 changed files with 5 additions and 1 deletions

View File

@ -4181,8 +4181,12 @@ namespace aux {
TORRENT_ASSERT(done != m_queued_for_checking.end());
if (done == m_queued_for_checking.end()) return;
if (next_check != t && t->state() == torrent_status::checking_files)
if (next_check != t
&& t->state() == torrent_status::checking_files
&& !m_paused)
{
next_check->start_checking();
}
m_queued_for_checking.erase(done);
}