aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2021-10-25 18:53:34 -0500
committerluigi1111 <luigi1111w@gmail.com>2021-10-25 18:53:34 -0500
commit00ac0489587721596fa202f301bba31cf2d9a93b (patch)
tree3f1be05af3ccc5cfdde1d32b5fe4b747f3d8a94d /src
parentMerge pull request #8001 (diff)
parentsocks: ignore any exceptions in shutdown/close (diff)
downloadmonero-00ac0489587721596fa202f301bba31cf2d9a93b.tar.xz
Merge pull request #7995
797ca97 socks: ignore any exceptions in shutdown/close (selsta)
Diffstat (limited to 'src')
-rw-r--r--src/net/socks.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/socks.cpp b/src/net/socks.cpp
index c2330bd41..6463e669e 100644
--- a/src/net/socks.cpp
+++ b/src/net/socks.cpp
@@ -321,8 +321,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);
}
});
}