mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-02-02 09:54:29 +00:00
this hack was wrong. lets fix it properly this time...
This commit is contained in:
parent
7474196b44
commit
0385f0d875
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user