mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Merge pull request #7995
797ca97
socks: ignore any exceptions in shutdown/close (selsta)
This commit is contained in:
commit
00ac048958
1 changed files with 3 additions and 2 deletions
|
@ -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 a new issue