added assert to make sure #365 doesn't happen

This commit is contained in:
Arvid Norberg 2008-09-25 22:08:18 +00:00
parent 4189e0b697
commit d4e0ea6c1e
1 changed files with 2 additions and 0 deletions

View File

@ -3527,6 +3527,8 @@ namespace libtorrent
{
session_impl::mutex_t::scoped_lock l(m_ses.m_mutex);
if (is_paused()) TORRENT_ASSERT(num_peers() == 0);
if (!m_ses.m_queued_for_checking.empty())
{
// if there are torrents waiting to be checked