Browse Source

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

miguelfreitas
Miguel Freitas 11 years ago
parent
commit
0385f0d875
  1. 2
      libtorrent/src/udp_socket.cpp

2
libtorrent/src/udp_socket.cpp

@ -813,10 +813,8 @@ void udp_socket::on_name_lookup(error_code const& e, tcp::resolver::iterator i) @@ -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;

Loading…
Cancel
Save