fix file_progress invariant check
This commit is contained in:
parent
2437b3c134
commit
fc70d70e33
|
@ -146,6 +146,7 @@ namespace libtorrent { namespace aux
|
||||||
// a piece twice. That violates its precondition and will cause incorect
|
// a piece twice. That violates its precondition and will cause incorect
|
||||||
// accounting
|
// accounting
|
||||||
TORRENT_ASSERT(m_have_pieces.get_bit(index) == false);
|
TORRENT_ASSERT(m_have_pieces.get_bit(index) == false);
|
||||||
|
m_have_pieces.set_bit(index);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int const piece_size = fs.piece_length();
|
int const piece_size = fs.piece_length();
|
||||||
|
|
Loading…
Reference in New Issue