Skip to content

Commit

Permalink
Locking
Browse files Browse the repository at this point in the history
  • Loading branch information
pwojcikdev committed Apr 1, 2024
1 parent 608d1f8 commit cd3f261
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nano/node/transport/tcp_listener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ asio::ip::tcp::endpoint nano::transport::tcp_listener::endpoint () const
{
if (!stopped)
{
nano::lock_guard<nano::mutex> lock{ mutex };
return { asio::ip::address_v6::loopback (), acceptor.local_endpoint ().port () };
}
else
Expand Down

0 comments on commit cd3f261

Please sign in to comment.