fixed bug in remap_files
This commit is contained in:
parent
eec2672d26
commit
83da84452f
|
@ -70,6 +70,7 @@
|
||||||
incoming connection
|
incoming connection
|
||||||
* added more detailed instrumentation of the disk I/O thread
|
* added more detailed instrumentation of the disk I/O thread
|
||||||
|
|
||||||
|
* fixed bug in torrent_info::remap_files
|
||||||
* fix python binding for wait_for_alert
|
* fix python binding for wait_for_alert
|
||||||
* only apply privileged port filter to DHT-only peers
|
* only apply privileged port filter to DHT-only peers
|
||||||
|
|
||||||
|
|
|
@ -497,6 +497,8 @@ namespace libtorrent
|
||||||
if (m_files.total_size() != f.total_size()) return;
|
if (m_files.total_size() != f.total_size()) return;
|
||||||
copy_on_write();
|
copy_on_write();
|
||||||
m_files = f;
|
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
|
#ifndef TORRENT_NO_DEPRECATE
|
||||||
|
|
Loading…
Reference in New Issue