fixed an incorrect assert and added another one in the invariant check
This commit is contained in:
parent
0f57bd3331
commit
051aa5dbe0
|
@ -2635,7 +2635,10 @@ namespace libtorrent
|
|||
#ifndef NDEBUG
|
||||
void peer_connection::check_invariant() const
|
||||
{
|
||||
assert((can_write() || m_connecting) == m_selector.is_writability_monitored(m_socket));
|
||||
assert((can_write() == m_selector.is_writability_monitored(m_socket))
|
||||
|| m_connecting);
|
||||
|
||||
assert(m_writability_monitored == m_selector.is_writability_monitored(m_socket));
|
||||
|
||||
/*
|
||||
assert(m_num_pieces == std::count(
|
||||
|
|
Loading…
Reference in New Issue