Fixed pong synchronization issue (#62)

* Fixed pong synchronization issue

* Minor optimization in lock by scoping it to necessary changes.

* Fixing compilation issues
This commit is contained in:
tiwariashish86 2019-05-09 15:06:05 -07:00 committed by Benjamin Sergeant
parent 9441095637
commit f60293b2e7

View File

@ -186,7 +186,7 @@ namespace ix
static const std::string kNoStatusCodeErrorMessage;
// enable auto response to ping
bool _enablePong;
std::atomic<bool> _enablePong;
static const bool kDefaultEnablePong;
// Optional ping and pong timeout