since moving an existing file into the part file isn't supported, just don't use the partfile for existing files when their priority is set to 0

This commit is contained in:
arvidn 2018-05-23 12:40:52 +02:00 committed by Arvid Norberg
parent 77191a3820
commit 6ec6c1b340
1 changed files with 3 additions and 4 deletions

View File

@ -477,11 +477,10 @@ namespace libtorrent
{
// move stuff into the part file
// this is not implemented yet.
// pretend that we didn't set the priority to 0.
// so we just don't use a partfile for this file
std::string fp = fs.file_path(i, m_save_path);
if (exists(fp))
new_prio = 1;
std::string const fp = fs.file_path(i, m_save_path);
if (exists(fp)) use_partfile(i, false);
/*
file_handle f = open_file(i, file::read_only, ec);
if (ec.ec != boost::system::errc::no_such_file_or_directory)