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;