From 4578f3426c6d15db5113488caaa99a19fda01f7c Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Wed, 12 Nov 2008 22:24:55 +0000 Subject: [PATCH] assert fix --- src/torrent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/torrent.cpp b/src/torrent.cpp index 20f2f3c51..270a56785 100644 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -3668,7 +3668,7 @@ namespace libtorrent } else { - TORRENT_ASSERT(m_abort || m_picker->num_pieces() == 0); + TORRENT_ASSERT(m_abort || !m_picker || m_picker->num_pieces() == 0); } #ifdef TORRENT_EXPENSIVE_INVARIANT_CHECKS