forked from premiere/premiere-libtorrent
Move the torrent_checked alert post to torrent::files_checked
This commit is contained in:
parent
4740dd030e
commit
05c1a64c76
|
@ -1566,13 +1566,6 @@ namespace aux {
|
||||||
m_queued_for_checking.pop_front();
|
m_queued_for_checking.pop_front();
|
||||||
if (!m_queued_for_checking.empty())
|
if (!m_queued_for_checking.empty())
|
||||||
m_queued_for_checking.front()->start_checking();
|
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(
|
torrent_handle session_impl::add_torrent(
|
||||||
|
|
|
@ -2991,6 +2991,14 @@ namespace libtorrent
|
||||||
#endif
|
#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
|
#ifndef NDEBUG
|
||||||
m_files_checked = true;
|
m_files_checked = true;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue