fix unhandled exception
This commit is contained in:
parent
735916ad44
commit
9c63dd1341
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue