don't make more calls to the disk thread when aborting

This commit is contained in:
Arvid Norberg 2009-05-31 19:25:26 +00:00
parent 6b4fcfcd38
commit 524151c040
1 changed files with 2 additions and 0 deletions

View File

@ -2107,6 +2107,8 @@ namespace libtorrent
remote(), pid(), block_finished.block_index, block_finished.piece_index));
}
if (t->is_aborted()) return;
// did we just finish the piece?
if (picker.is_piece_finished(p.piece))
{