From 05c1a64c76c7127d208f16244d7a2fc021e76637 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Wed, 23 Apr 2008 01:01:00 +0000 Subject: [PATCH] Move the torrent_checked alert post to torrent::files_checked --- src/session_impl.cpp | 7 ------- src/torrent.cpp | 8 ++++++++ 2 files changed, 8 insertions(+), 7 deletions(-) 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