added necessary try catch block

This commit is contained in:
Arvid Norberg 2006-10-25 11:43:25 +00:00
parent 340d8a1cbc
commit 6f939b565b
1 changed files with 2 additions and 1 deletions

View File

@ -316,7 +316,7 @@ void add_torrent(libtorrent::session& ses
, float preferred_ratio
, bool compact_mode
, path const& save_path
, bool monitored_dir)
, bool monitored_dir) try
{
using namespace libtorrent;
@ -351,6 +351,7 @@ void add_torrent(libtorrent::session& ses
h.set_ratio(preferred_ratio);
h.set_sequenced_download_threshold(15);
}
catch (std::exception&) {}
void scan_dir(path const& dir_path
, libtorrent::session& ses