Skip to content

Commit

Permalink
DISABLE SOCKET CLOSE
Browse files Browse the repository at this point in the history
  • Loading branch information
pwojcikdev committed Feb 12, 2024
1 parent 87468b0 commit b4161d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nano/node/transport/socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ nano::transport::socket::socket (nano::node & node_a, endpoint_type_t endpoint_t

nano::transport::socket::~socket ()
{
close_internal ();
// close_internal ();
}

void nano::transport::socket::start ()
Expand Down Expand Up @@ -320,6 +320,8 @@ void nano::transport::socket::close ()
// This must be called from a strand or the destructor
void nano::transport::socket::close_internal ()
{
debug_assert (strand.running_in_this_thread ());

if (closed.exchange (true))
{
return;
Expand Down

0 comments on commit b4161d8

Please sign in to comment.