this hack was wrong. lets fix it properly this time...

This commit is contained in:
Miguel Freitas 2014-06-29 21:43:22 -03:00
parent 7474196b44
commit 0385f0d875

View File

@ -813,10 +813,8 @@ void udp_socket::on_name_lookup(error_code const& e, tcp::resolver::iterator i)
void udp_socket::on_timeout()
{
#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);
--m_outstanding_timeout;
}
#endif
TORRENT_ASSERT(m_outstanding_ops > 0);
--m_outstanding_ops;