forked from premiere/premiere-libtorrent
fixed bug appearing when changing the sequenced download threshold on a torrent which already had some pieced downloaded.
This commit is contained in:
parent
bdf1bbc8f4
commit
5ae55c5738
10
ChangeLog
10
ChangeLog
|
@ -1,7 +1,11 @@
|
|||
* fixed bug with file_progress() with files > 2 GB
|
||||
* added --enable-examples option to configure script
|
||||
* changed the address type to support IPv6
|
||||
* fixed in piece picker which would assert when changing
|
||||
sequenced download threshold on torrents with already
|
||||
downloaded pieces.
|
||||
* fixed bug with file_progress() with files > 2 GB.
|
||||
* added --enable-examples option to configure script.
|
||||
* fixed problem with the resource distribution algorithm
|
||||
(controlling e.g upload/download rates)
|
||||
(controlling e.g upload/download rates).
|
||||
* fixed incorrect asserts in storage related to torrents with
|
||||
zero-sized files.
|
||||
* added support for trackerless torrents (with kademlia DHT).
|
||||
|
|
|
@ -157,8 +157,9 @@ namespace libtorrent
|
|||
if (i->priority(old_limit) != i->priority(m_sequenced_download_threshold))
|
||||
{
|
||||
piece_pos& p = *i;
|
||||
int prev_priority = i->priority(old_limit);
|
||||
move(p.downloading, p.filtered, prev_priority, i->index);
|
||||
if (p.index == piece_pos::we_have_index) continue;
|
||||
int prev_priority = p.priority(old_limit);
|
||||
move(p.downloading, p.filtered, prev_priority, p.index);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -378,6 +379,7 @@ namespace libtorrent
|
|||
assert(!filtered);
|
||||
assert(priority >= 0);
|
||||
assert(elem_index >= 0);
|
||||
assert(elem_index != piece_pos::we_have_index);
|
||||
std::vector<std::vector<int> >& src_vec(pick_piece_info_vector(
|
||||
downloading, filtered));
|
||||
|
||||
|
|
Loading…
Reference in New Issue