From cd3f261df3471e7e26b92890542d69ad272746d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Wo=CC=81jcik?= <3044353+pwojcikdev@users.noreply.github.com> Date: Mon, 1 Apr 2024 10:24:20 +0200 Subject: [PATCH] Locking --- nano/node/transport/tcp_listener.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/nano/node/transport/tcp_listener.cpp b/nano/node/transport/tcp_listener.cpp index 368279e95d..511b270f8b 100644 --- a/nano/node/transport/tcp_listener.cpp +++ b/nano/node/transport/tcp_listener.cpp @@ -370,6 +370,7 @@ asio::ip::tcp::endpoint nano::transport::tcp_listener::endpoint () const { if (!stopped) { + nano::lock_guard lock{ mutex }; return { asio::ip::address_v6::loopback (), acceptor.local_endpoint ().port () }; } else