diff --git a/src/session_impl.cpp b/src/session_impl.cpp index 89340964b..e8b34c9bb 100755 --- a/src/session_impl.cpp +++ b/src/session_impl.cpp @@ -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( diff --git a/src/torrent.cpp b/src/torrent.cpp index eb22adcbf..48a466a9c 100755 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -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