mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-12-27 19:05:12 -07:00
socks: ignore any exceptions in shutdown/close
This commit is contained in:
parent
6b824c9ed0
commit
797ca974ab
@ -321,8 +321,9 @@ namespace socks
|
|||||||
{
|
{
|
||||||
if (self && self->proxy_.is_open())
|
if (self && self->proxy_.is_open())
|
||||||
{
|
{
|
||||||
self->proxy_.shutdown(boost::asio::ip::tcp::socket::shutdown_both);
|
boost::system::error_code ec;
|
||||||
self->proxy_.close();
|
self->proxy_.shutdown(boost::asio::ip::tcp::socket::shutdown_both, ec);
|
||||||
|
self->proxy_.close(ec);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user