fixed bug in remap_files

This commit is contained in:
Arvid Norberg 2011-01-17 08:02:23 +00:00
parent eec2672d26
commit 83da84452f
2 changed files with 3 additions and 0 deletions

View File

@ -70,6 +70,7 @@
incoming connection
* added more detailed instrumentation of the disk I/O thread
* fixed bug in torrent_info::remap_files
* fix python binding for wait_for_alert
* only apply privileged port filter to DHT-only peers

View File

@ -497,6 +497,8 @@ namespace libtorrent
if (m_files.total_size() != f.total_size()) return;
copy_on_write();
m_files = f;
m_files.set_num_pieces(m_orig_files->num_pieces());
m_files.set_piece_length(m_orig_files->piece_length());
}
#ifndef TORRENT_NO_DEPRECATE