|
|
@ -813,10 +813,8 @@ void udp_socket::on_name_lookup(error_code const& e, tcp::resolver::iterator i) |
|
|
|
void udp_socket::on_timeout() |
|
|
|
void udp_socket::on_timeout() |
|
|
|
{ |
|
|
|
{ |
|
|
|
#if defined TORRENT_DEBUG || TORRENT_RELEASE_ASSERTS |
|
|
|
#if defined TORRENT_DEBUG || TORRENT_RELEASE_ASSERTS |
|
|
|
if(m_outstanding_timeout > 0) { // without this check it breaks using socks5
|
|
|
|
|
|
|
|
TORRENT_ASSERT(m_outstanding_timeout > 0); |
|
|
|
TORRENT_ASSERT(m_outstanding_timeout > 0); |
|
|
|
--m_outstanding_timeout; |
|
|
|
--m_outstanding_timeout; |
|
|
|
} |
|
|
|
|
|
|
|
#endif |
|
|
|
#endif |
|
|
|
TORRENT_ASSERT(m_outstanding_ops > 0); |
|
|
|
TORRENT_ASSERT(m_outstanding_ops > 0); |
|
|
|
--m_outstanding_ops; |
|
|
|
--m_outstanding_ops; |
|
|
|