made the invariant check more strict
This commit is contained in:
parent
54a5dd4af4
commit
56ae82be2c
|
@ -3398,11 +3398,11 @@ namespace libtorrent
|
||||||
// if there are torrents waiting to be checked
|
// if there are torrents waiting to be checked
|
||||||
// assert that there's a torrent that is being
|
// assert that there's a torrent that is being
|
||||||
// processed right now
|
// processed right now
|
||||||
bool found = false;
|
int found = 0;
|
||||||
for (aux::session_impl::torrent_map::iterator i = m_ses.m_torrents.begin()
|
for (aux::session_impl::torrent_map::iterator i = m_ses.m_torrents.begin()
|
||||||
, end(m_ses.m_torrents.end()); i != end; ++i)
|
, end(m_ses.m_torrents.end()); i != end; ++i)
|
||||||
if (i->second->m_state == torrent_status::checking_files) found = true;
|
if (i->second->m_state == torrent_status::checking_files) ++found;
|
||||||
TORRENT_ASSERT(found);
|
TORRENT_ASSERT(found == 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
TORRENT_ASSERT(m_resume_entry.type() == lazy_entry::dict_t
|
TORRENT_ASSERT(m_resume_entry.type() == lazy_entry::dict_t
|
||||||
|
|
Loading…
Reference in New Issue