merged udp socket fallback fix from RC_1_0

This commit is contained in:
arvidn 2015-08-05 22:22:57 -04:00
parent fb34607313
commit 788e41c3bb
2 changed files with 8 additions and 0 deletions

View File

@ -73,6 +73,7 @@
* added support for hashing pieces in multiple threads
* fixed falling back to sending UDP packets direct when socks proxy fails
* fixed total_wanted bug (when setting file priorities in add_torrent_params)
1.0.6 release

View File

@ -932,6 +932,13 @@ void udp_socket::on_connected(error_code const& e)
if (e)
{
// we failed to connect to the proxy, if we don't have force_proxy set,
// drain the queue over the UDP socket
if (!m_force_proxy)
{
drain_queue();
}
call_handler(e, udp::endpoint(), 0, 0);
return;
}