fix data race on _thread

This commit is contained in:
Alexandre Konieczny
2019-04-29 16:18:22 +02:00
committed by Benjamin Sergeant
parent c7e52e6fcd
commit a9422cf34d
2 changed files with 6 additions and 1 deletions

View File

@ -154,6 +154,7 @@ namespace ix
static OnTrafficTrackerCallback _onTrafficTrackerCallback;
std::atomic<bool> _stop;
std::atomic<bool> _blocking;
std::atomic<bool> _automaticReconnection;
std::thread _thread;
std::mutex _writeMutex;