From 6f939b565b141d7bf7557c000bd8ee30b1d60bd3 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Wed, 25 Oct 2006 11:43:25 +0000 Subject: [PATCH] added necessary try catch block --- examples/client_test.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/client_test.cpp b/examples/client_test.cpp index aead7106f..445fe63ad 100755 --- a/examples/client_test.cpp +++ b/examples/client_test.cpp @@ -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