attempt to fix piece_picker assert
This commit is contained in:
parent
c0ed1fa13a
commit
7466638231
|
@ -1575,15 +1575,9 @@ 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;
|
||||||
}
|
sort_piece(i);
|
||||||
else
|
|
||||||
{
|
|
||||||
info.state = block_info::state_finished;
|
|
||||||
sort_piece(i);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue