added necessary try catch block
This commit is contained in:
@@ -316,7 +316,7 @@ void add_torrent(libtorrent::session& ses
|
|||||||
, float preferred_ratio
|
, float preferred_ratio
|
||||||
, bool compact_mode
|
, bool compact_mode
|
||||||
, path const& save_path
|
, path const& save_path
|
||||||
, bool monitored_dir)
|
, bool monitored_dir) try
|
||||||
{
|
{
|
||||||
using namespace libtorrent;
|
using namespace libtorrent;
|
||||||
|
|
||||||
@@ -351,6 +351,7 @@ void add_torrent(libtorrent::session& ses
|
|||||||
h.set_ratio(preferred_ratio);
|
h.set_ratio(preferred_ratio);
|
||||||
h.set_sequenced_download_threshold(15);
|
h.set_sequenced_download_threshold(15);
|
||||||
}
|
}
|
||||||
|
catch (std::exception&) {}
|
||||||
|
|
||||||
void scan_dir(path const& dir_path
|
void scan_dir(path const& dir_path
|
||||||
, libtorrent::session& ses
|
, libtorrent::session& ses
|
||||||
|
Reference in New Issue
Block a user