fix asio-debugging bug in udp_socket

This commit is contained in:
Arvid Norberg 2015-01-05 12:22:31 +00:00
parent 3be0430036
commit 73a4755f13
1 changed files with 3 additions and 0 deletions

View File

@ -866,6 +866,9 @@ void udp_socket::on_name_lookup(error_code const& e, tcp::resolver::iterator i)
void udp_socket::on_connect_timeout(error_code const& ec)
{
#if defined TORRENT_ASIO_DEBUGGING
complete_async("udp_socket::on_connect_timeout");
#endif
#if TORRENT_USE_ASSERTS
TORRENT_ASSERT(m_outstanding_timeout > 0);
--m_outstanding_timeout;