diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2025-09-29 14:47:36 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2025-09-29 14:47:36 +0200 |
commit | 0e45906f27f51f89326de479b7a9cb60fc2920b8 (patch) | |
tree | b65ec00afdce0826fe32bdf5f85a3dbb563b68de /lib/Socket.h | |
parent | 87fce948967230707de283b3e7d0e833f00bfad2 (diff) | |
download | dabmod-0e45906f27f51f89326de479b7a9cb60fc2920b8.tar.gz dabmod-0e45906f27f51f89326de479b7a9cb60fc2920b8.tar.bz2 dabmod-0e45906f27f51f89326de479b7a9cb60fc2920b8.zip |
common 53fdfd2: Fix race condition in TCPDataDispatcher get_statsnext
Diffstat (limited to 'lib/Socket.h')
-rw-r--r-- | lib/Socket.h | 2 |
1 files changed, 1 insertions, 1 deletions
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<std::vector<uint8_t> > m_preroll_queue; std::list<TCPConnection> m_connections; }; |