attempt to fix piece_picker assert
This commit is contained in:
parent
c0ed1fa13a
commit
7466638231
|
@ -1575,17 +1575,11 @@ namespace libtorrent
|
||||||
assert(i->writing >= 0);
|
assert(i->writing >= 0);
|
||||||
++i->finished;
|
++i->finished;
|
||||||
if (info.state == block_info::state_writing)
|
if (info.state == block_info::state_writing)
|
||||||
{
|
|
||||||
--i->writing;
|
--i->writing;
|
||||||
info.state = block_info::state_finished;
|
info.state = block_info::state_finished;
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
info.state = block_info::state_finished;
|
|
||||||
sort_piece(i);
|
sort_piece(i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void piece_picker::get_downloaders(std::vector<void*>& d, int index) const
|
void piece_picker::get_downloaders(std::vector<void*>& d, int index) const
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue