Skip to content

Commit

Permalink
Implicitly close socket by destructor
Browse files Browse the repository at this point in the history
  • Loading branch information
pwojcikdev committed Mar 25, 2024
1 parent 8b9c36a commit 23dcc6d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion nano/node/transport/tcp_listener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,6 @@ auto nano::transport::tcp_listener::accept_one () -> accept_result
{
// Best effor attempt to gracefully close the socket, shutdown before closing to avoid zombie sockets
raw_socket.shutdown (boost::asio::ip::tcp::socket::shutdown_both);
raw_socket.close ();
}
catch (boost::system::system_error const & ex)
{
Expand Down

0 comments on commit 23dcc6d

Please sign in to comment.