fixed rename_file() bug where the new name would not be saved in the resume data in some cases

This commit is contained in:
Arvid Norberg
2009-06-22 00:52:57 +00:00
parent 93e1c70263
commit cc3e6621ed
8 changed files with 31 additions and 14 deletions

View File

@@ -3257,7 +3257,7 @@ namespace libtorrent
{
std::string new_filename = mapped_files->list_string_value_at(i);
if (new_filename.empty()) continue;
rename_file(i, new_filename);
m_torrent_file->rename_file(i, new_filename);
}
}