From dda84c9247565ac01f8393de88ad790cecad045f Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 2 Apr 2011 07:39:02 +0000 Subject: [PATCH] fix magnet link issue in client_test --- examples/client_test.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/client_test.cpp b/examples/client_test.cpp index 863dda277..e8b57d0b2 100644 --- a/examples/client_test.cpp +++ b/examples/client_test.cpp @@ -857,8 +857,9 @@ void handle_alert(libtorrent::session& ses, libtorrent::alert* a else if (save_resume_data_failed_alert* p = alert_cast(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); } }