fix unhandled exception

This commit is contained in:
Arvid Norberg 2014-06-19 03:26:29 +00:00
parent 735916ad44
commit 9c63dd1341
1 changed files with 5 additions and 2 deletions

View File

@ -704,10 +704,13 @@ void udp_socket::set_buf_size(int s)
close();
}
error_code ignore_errors;
// set the internal buffer sizes as well
m_ipv4_sock.set_option(boost::asio::socket_base::receive_buffer_size(m_buf_size));
m_ipv4_sock.set_option(boost::asio::socket_base::receive_buffer_size(m_buf_size)
, ignore_errors);
#if TORRENT_USE_IPV6
m_ipv6_sock.set_option(boost::asio::socket_base::receive_buffer_size(m_buf_size));
m_ipv6_sock.set_option(boost::asio::socket_base::receive_buffer_size(m_buf_size)
, ignore_errors);
#endif
}