fixed incorrect assert

This commit is contained in:
Arvid Norberg
2011-02-15 10:11:36 +00:00
parent c4c1773ceb
commit 7f981ece6c

View File

@@ -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)