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 6918f863b1
commit e37e69311b
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;