reverted [1488]

This commit is contained in:
Arvid Norberg 2007-08-22 18:40:31 +00:00
parent e009834a18
commit f7737cae32
1 changed files with 8 additions and 2 deletions

View File

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