diff options
author | selsta <selsta@sent.at> | 2021-10-05 19:42:25 +0200 |
---|---|---|
committer | selsta <selsta@sent.at> | 2021-10-22 22:01:01 +0200 |
commit | 423b6553a1bea5d80486b9c6de9d0b1a78d87cdc (patch) | |
tree | 0c37353b7a16e65555aa3741fb9de51c01e2f5c9 | |
parent | Merge pull request #7964 (diff) | |
download | monero-423b6553a1bea5d80486b9c6de9d0b1a78d87cdc.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 3463f452c..c23b8c613 100644 --- a/src/net/socks.cpp +++ b/src/net/socks.cpp @@ -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); } }); } |