fix issue in session_impl::remove_torrent which would cause it to throw

This commit is contained in:
Arvid Norberg
2011-06-21 02:02:58 +00:00
parent 39a68729a5
commit de799e1100
3 changed files with 12 additions and 7 deletions

View File

@@ -1578,7 +1578,10 @@ int main(int argc, char* argv[])
std::string event_string;
::print_alert(*i, event_string);
::handle_alert(ses, *i, files, non_files);
TORRENT_TRY
{
::handle_alert(ses, *i, files, non_files);
} TORRENT_CATCH(std::exception& e) {}
events.push_back(event_string);
if (events.size() >= 20) events.pop_front();