From a3f5962f916a4a94b68ba7729acf3504b273701a Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 18 Jul 2010 14:45:43 +0000 Subject: [PATCH] ignore failures in when asking for local_endpoint --- include/libtorrent/udp_socket.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/libtorrent/udp_socket.hpp b/include/libtorrent/udp_socket.hpp index 31f39b106..415cd5823 100644 --- a/include/libtorrent/udp_socket.hpp +++ b/include/libtorrent/udp_socket.hpp @@ -79,7 +79,8 @@ namespace libtorrent bool is_closed() const { return m_abort; } tcp::endpoint local_endpoint() const { - udp::endpoint ep = m_ipv4_sock.local_endpoint(); + error_code ec; + udp::endpoint ep = m_ipv4_sock.local_endpoint(ec); return tcp::endpoint(ep.address(), ep.port()); }