added assert to make sure #365 doesn't happen
This commit is contained in:
parent
4189e0b697
commit
d4e0ea6c1e
|
@ -3527,6 +3527,8 @@ namespace libtorrent
|
||||||
{
|
{
|
||||||
session_impl::mutex_t::scoped_lock l(m_ses.m_mutex);
|
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 (!m_ses.m_queued_for_checking.empty())
|
||||||
{
|
{
|
||||||
// if there are torrents waiting to be checked
|
// if there are torrents waiting to be checked
|
||||||
|
|
Loading…
Reference in New Issue