attempt to fix piece_picker assert

This commit is contained in:
Arvid Norberg 2007-08-22 17:39:57 +00:00
parent c0ed1fa13a
commit 7466638231
1 changed files with 2 additions and 8 deletions

View File

@ -1575,15 +1575,9 @@ namespace libtorrent
assert(i->writing >= 0);
++i->finished;
if (info.state == block_info::state_writing)
{
--i->writing;
info.state = block_info::state_finished;
}
else
{
info.state = block_info::state_finished;
sort_piece(i);
}
info.state = block_info::state_finished;
sort_piece(i);
}
}