From 524151c040f217515474adbef1cc72beddfc0300 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 31 May 2009 19:25:26 +0000 Subject: [PATCH] don't make more calls to the disk thread when aborting --- src/peer_connection.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/peer_connection.cpp b/src/peer_connection.cpp index 98f7385c4..53eeb96ba 100644 --- a/src/peer_connection.cpp +++ b/src/peer_connection.cpp @@ -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)) {