Initialize stop variable.

Avoid stopping the worker thread immediately if the stop variable happens to be true.
This commit is contained in:
Frederik Juul Christiani 2017-06-13 10:28:12 +02:00 committed by Jocelyn Turcotte
parent f348a7d4f4
commit e7d4d12e16

View file

@ -172,7 +172,8 @@ void RemotePathChecker::workerThreadLoop()
RemotePathChecker::RemotePathChecker()
: _watchedDirectories(make_shared<const vector<wstring>>())
: _stop(false)
, _watchedDirectories(make_shared<const vector<wstring>>())
, _connected(false)
, _newQueries(CreateEvent(NULL, true, true, NULL))
, _thread([this]{ this->workerThreadLoop(); })