diff options
author | luigi1111 <luigi1111w@gmail.com> | 2021-10-25 18:58:20 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2021-10-25 18:58:20 -0500 |
commit | 2ac8f5b58ebf7d997e05029832d5c17b14c27b3d (patch) | |
tree | 63f4aa20d184bc182f17af1e666d8029506bed05 | |
parent | Merge pull request #8005 (diff) | |
parent | socks: ignore any exceptions in shutdown/close (diff) | |
download | monero-2ac8f5b58ebf7d997e05029832d5c17b14c27b3d.tar.xz |
Merge pull request #7996
423b655 socks: ignore any exceptions in shutdown/close (selsta)
-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); } }); } |