fix magnet link issue in client_test

This commit is contained in:
Arvid Norberg 2011-04-02 07:39:02 +00:00
parent 2fbd1d4677
commit dda84c9247
1 changed files with 3 additions and 2 deletions

View File

@ -857,8 +857,9 @@ void handle_alert(libtorrent::session& ses, libtorrent::alert* a
else if (save_resume_data_failed_alert* p = alert_cast<save_resume_data_failed_alert>(a))
{
torrent_handle h = p->handle;
if (std::find_if(files.begin(), files.end()
, boost::bind(&handles_t::value_type::second, _1) == h) == files.end())
if (non_files.find(h) == non_files.end()
&& std::find_if(files.begin(), files.end()
, boost::bind(&handles_t::value_type::second, _1) == h) == files.end())
ses.remove_torrent(h);
}
}