From 2cbf5fdbe6ee5b12c30aee7ece7375a37448546f Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 29 Sep 2025 14:48:05 +0200 Subject: common 53fdfd2: Fix race condition in TCPDataDispatcher get_stats --- contrib/Socket.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/Socket.h') diff --git a/contrib/Socket.h b/contrib/Socket.h index 29b618a..b9a40ee 100644 --- a/contrib/Socket.h +++ b/contrib/Socket.h @@ -298,7 +298,7 @@ class TCPDataDispatcher std::thread m_listener_thread; TCPSocket m_listener_socket; - std::mutex m_mutex; + mutable std::mutex m_mutex; std::deque > m_preroll_queue; std::list m_connections; }; -- cgit v1.2.3