fixed incorrect assert
This commit is contained in:
@@ -3272,14 +3272,14 @@ namespace libtorrent
|
|||||||
++m_ses.m_connect_timeouts;
|
++m_ses.m_connect_timeouts;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
TORRENT_ASSERT(m_connecting);
|
||||||
|
|
||||||
if (m_connection_ticket != -1)
|
if (m_connection_ticket != -1)
|
||||||
{
|
{
|
||||||
m_ses.m_half_open.done(m_connection_ticket);
|
m_ses.m_half_open.done(m_connection_ticket);
|
||||||
m_connecting = false;
|
m_connecting = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
TORRENT_ASSERT(m_connecting);
|
|
||||||
|
|
||||||
// a connection attempt using uTP just failed
|
// a connection attempt using uTP just failed
|
||||||
// mark this peer as not supporting uTP
|
// mark this peer as not supporting uTP
|
||||||
// we'll never try it again (unless we're trying holepunch)
|
// we'll never try it again (unless we're trying holepunch)
|
||||||
|
Reference in New Issue
Block a user