From c8a784a51353d5694691e1e3be5427395c043715 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 17 Jan 2009 19:00:09 +0000 Subject: [PATCH] added invariant check in on_piece_checked to narrow down #472 --- src/torrent.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/torrent.cpp b/src/torrent.cpp index 8b28b9d6a..dd73b8784 100644 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -906,6 +906,8 @@ namespace libtorrent { session_impl::mutex_t::scoped_lock l(m_ses.m_mutex); + INVARIANT_CHECK; + if (ret == piece_manager::disk_check_aborted) { return;