resume data errors should always be logged, regardless of the alert being active

This commit is contained in:
Arvid Norberg 2009-02-08 00:05:27 +00:00
parent 6c8617ffc3
commit c0d43b8110
1 changed files with 5 additions and 5 deletions

View File

@ -560,14 +560,14 @@ namespace libtorrent
{
m_ses.m_alerts.post_alert(fastresume_rejected_alert(get_handle(), error));
}
#if defined TORRENT_VERBOSE_LOGGING || defined TORRENT_LOGGING || defined TORRENT_ERROR_LOGGING
(*m_ses.m_logger) << "fastresume data for "
<< torrent_file().name() << " rejected: "
<< error << "\n";
#endif
if (error)
{
#if defined TORRENT_VERBOSE_LOGGING || defined TORRENT_LOGGING || defined TORRENT_ERROR_LOGGING
(*m_ses.m_logger) << "fastresume data for "
<< torrent_file().name() << " rejected: "
<< error << "\n";
#endif
std::vector<char>().swap(m_resume_data);
lazy_entry().swap(m_resume_entry);
}