fix file_progress invariant check

This commit is contained in:
arvidn 2017-01-29 02:46:29 -05:00
parent 2437b3c134
commit fc70d70e33
1 changed files with 1 additions and 0 deletions

View File

@ -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();