From b1d13105e7990d3fd5b4ae8e6928f636614e7ff4 Mon Sep 17 00:00:00 2001 From: tiwariashish86 Date: Thu, 9 May 2019 15:06:05 -0700 Subject: [PATCH] Fixed pong synchronization issue (#62) * Fixed pong synchronization issue * Minor optimization in lock by scoping it to necessary changes. * Fixing compilation issues --- ixwebsocket/IXWebSocketTransport.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ixwebsocket/IXWebSocketTransport.h b/ixwebsocket/IXWebSocketTransport.h index 7767a8e5..c732a803 100644 --- a/ixwebsocket/IXWebSocketTransport.h +++ b/ixwebsocket/IXWebSocketTransport.h @@ -186,7 +186,7 @@ namespace ix static const std::string kNoStatusCodeErrorMessage; // enable auto response to ping - bool _enablePong; + std::atomic _enablePong; static const bool kDefaultEnablePong; // Optional ping and pong timeout