diff options
author | luigi1111 <luigi1111w@gmail.com> | 2021-10-25 18:53:34 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2021-10-25 18:53:34 -0500 |
commit | 00ac0489587721596fa202f301bba31cf2d9a93b (patch) | |
tree | 3f1be05af3ccc5cfdde1d32b5fe4b747f3d8a94d | |
parent | Merge pull request #8001 (diff) | |
parent | socks: ignore any exceptions in shutdown/close (diff) | |
download | monero-00ac0489587721596fa202f301bba31cf2d9a93b.tar.xz |
Merge pull request #7995
797ca97 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 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); } }); } |