mirror of
https://github.com/monero-project/monero.git
synced 2024-12-14 21:24:25 -05:00
socks: ignore any exceptions in shutdown/close
This commit is contained in:
parent
2243318000
commit
423b6553a1
@ -322,8 +322,9 @@ namespace socks
|
||||
{
|
||||
if (self && self->proxy_.is_open())
|
||||
{
|
||||
self->proxy_.shutdown(boost::asio::ip::tcp::socket::shutdown_both);
|
||||
self->proxy_.close();
|
||||
boost::system::error_code ec;
|
||||
self->proxy_.shutdown(boost::asio::ip::tcp::socket::shutdown_both, ec);
|
||||
self->proxy_.close(ec);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user