From d8fab73aeb2c4401bbd88024556a7726ff2129ea Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 29 Sep 2025 14:45:31 +0200 Subject: common 53fdfd2: Fix race condition in TCPDataDispatcher get_stats --- lib/Socket.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Socket.h') diff --git a/lib/Socket.h b/lib/Socket.h index 29b618a..b9a40ee 100644 --- a/lib/Socket.h +++ b/lib/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