From bbaa2efcb0b29917f107df87ca03fa1635b5ba2d Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Wed, 13 Jun 2007 18:09:52 +0000 Subject: [PATCH] removed asserts that are can no longer be maintained with the async io --- include/libtorrent/torrent.hpp | 2 -- src/torrent.cpp | 1 - 2 files changed, 3 deletions(-) diff --git a/include/libtorrent/torrent.hpp b/include/libtorrent/torrent.hpp index 9cc4784f2..9c9a5d034 100755 --- a/include/libtorrent/torrent.hpp +++ b/include/libtorrent/torrent.hpp @@ -456,13 +456,11 @@ namespace libtorrent alert_manager& alerts() const; piece_picker& picker() { - assert(!is_seed()); assert(m_picker.get()); return *m_picker; } bool has_picker() const { - assert((m_storage && !is_seed()) == bool(m_picker.get() != 0)); return m_picker.get() != 0; } policy& get_policy() diff --git a/src/torrent.cpp b/src/torrent.cpp index d2f4eaac8..2ac6d1895 100755 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -2771,7 +2771,6 @@ namespace libtorrent } else if (st.total_wanted_done == st.total_wanted) { - assert(st.total_done != m_torrent_file.total_size()); st.state = torrent_status::finished; } else