diff --git a/src/session_impl.cpp b/src/session_impl.cpp index dcb5270c4..c8ca12663 100644 --- a/src/session_impl.cpp +++ b/src/session_impl.cpp @@ -1837,7 +1837,7 @@ namespace { if (m_settings.get_int(settings_pack::proxy_type) != settings_pack::none) { // we will be able to accept incoming connections over UDP. so use - // one of the ports the user specified to use a constistent port + // one of the ports the user specified to use a consistent port // across sessions. If the user did not specify any ports, pick one // at random int const port = m_listen_interfaces.empty() diff --git a/src/udp_socket.cpp b/src/udp_socket.cpp index 355cdd81f..b2b670508 100644 --- a/src/udp_socket.cpp +++ b/src/udp_socket.cpp @@ -922,6 +922,8 @@ void socks5::hung_up(error_code const& e) void socks5::retry_socks_connect(error_code const& e) { if (e) return; + error_code ignore; + m_socks5_sock.close(ignore); start(m_proxy_settings); }