From c7e52e6fcd8e79db08029c25a431ed4e7bfe233a Mon Sep 17 00:00:00 2001 From: Alexandre Konieczny Date: Mon, 29 Apr 2019 17:16:30 +0200 Subject: [PATCH] fix data race on _useMask --- ixwebsocket/IXWebSocketTransport.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ixwebsocket/IXWebSocketTransport.h b/ixwebsocket/IXWebSocketTransport.h index bf93adc8..bc54e41f 100644 --- a/ixwebsocket/IXWebSocketTransport.h +++ b/ixwebsocket/IXWebSocketTransport.h @@ -119,7 +119,7 @@ namespace ix // Tells whether we should mask the data we send. // client should mask but server should not - bool _useMask; + std::atomic _useMask; // Buffer for reading from our socket. That buffer is never resized. std::vector _readbuf;