Move the torrent_checked alert post to torrent::files_checked

This commit is contained in:
Andrew Resch 2008-04-23 01:01:00 +00:00
parent 4740dd030e
commit 05c1a64c76
2 changed files with 8 additions and 7 deletions

View File

@ -1566,13 +1566,6 @@ namespace aux {
m_queued_for_checking.pop_front();
if (!m_queued_for_checking.empty())
m_queued_for_checking.front()->start_checking();
if (m_alerts.should_post(alert::info))
{
m_alerts.post_alert(torrent_checked_alert(
t->get_handle()
, "torrent finished checking"));
}
}
torrent_handle session_impl::add_torrent(

View File

@ -2991,6 +2991,14 @@ namespace libtorrent
#endif
}
}
if (m_ses.m_alerts.should_post(alert::info))
{
m_ses.m_alerts.post_alert(torrent_checked_alert(
get_handle()
, "torrent finished checking"));
}
#ifndef NDEBUG
m_files_checked = true;
#endif