mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 13:35:58 +03:00
Initialize stop variable.
Avoid stopping the worker thread immediately if the stop variable happens to be true.
This commit is contained in:
parent
f348a7d4f4
commit
e7d4d12e16
1 changed files with 2 additions and 1 deletions
|
@ -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(); })
|
||||
|
|
Loading…
Reference in a new issue