mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-12 05:02:31 +00:00
Changed magnet metadata handling and added 'magnet.path.set'.
This commit is contained in:
@@ -92,10 +92,12 @@ DownloadStorer::unlink_files(const std::string& session_path) {
|
||||
auto torrent_path = base_path;
|
||||
auto libtorrent_path = base_path + ".libtorrent_resume";
|
||||
auto rtorrent_path = base_path + ".rtorrent";
|
||||
auto metadata_path = base_path + ".meta";
|
||||
|
||||
::unlink(libtorrent_path.c_str());
|
||||
::unlink(rtorrent_path.c_str());
|
||||
::unlink(torrent_path.c_str());
|
||||
::unlink(metadata_path.c_str());
|
||||
}
|
||||
|
||||
namespace {
|
||||
|
||||
@@ -82,5 +82,6 @@ void cancel_callback(void* target) { session::ThreadSessio
|
||||
void cancel_callback_and_wait(void* target) { session::ThreadSessionInternal::thread_session()->cancel_callback_and_wait(target); }
|
||||
|
||||
session::SessionManager* manager() { return session::ThreadSessionInternal::thread_session()->manager(); }
|
||||
std::string session_path() { return session::ThreadSessionInternal::thread_session()->manager()->path(); }
|
||||
|
||||
} // namespace session_thread
|
||||
|
||||
Reference in New Issue
Block a user