diff --git a/bindings/python/src/torrent_handle.cpp b/bindings/python/src/torrent_handle.cpp index dfadb0571..8ae2bb965 100644 --- a/bindings/python/src/torrent_handle.cpp +++ b/bindings/python/src/torrent_handle.cpp @@ -269,8 +269,6 @@ void bind_torrent_handle() void (torrent_handle::*resolve_countries1)(bool) = &torrent_handle::resolve_countries; #endif - return_value_policy copy; - #define _ allow_threads class_("torrent_handle") diff --git a/src/session_impl.cpp b/src/session_impl.cpp index 806020fbe..d1e4eda01 100644 --- a/src/session_impl.cpp +++ b/src/session_impl.cpp @@ -1841,7 +1841,7 @@ namespace aux { { TORRENT_ASSERT(!params.save_path.empty()); - if (params.ti && params.ti->files().num_files() == 0) + if (params.ti && params.ti->num_files() == 0) { #ifndef BOOST_NO_EXCEPTIONS throw std::runtime_error("no files in torrent");