diff options
author | selsta <selsta@sent.at> | 2021-10-05 19:42:25 +0200 |
---|---|---|
committer | selsta <selsta@sent.at> | 2021-10-22 22:00:29 +0200 |
commit | 797ca974abc281dd800486473c11437a06100df3 (patch) | |
tree | 20a5972131dc5a917f49c1d8293de8c73e82ca61 | |
parent | Merge pull request #7945 (diff) | |
download | monero-797ca974abc281dd800486473c11437a06100df3.tar.xz |
socks: ignore any exceptions in shutdown/close
-rw-r--r-- | src/net/socks.cpp | 5 |
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); } }); } |