mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-23 21:05:44 +03:00
shell_integration/windows: Create _newQueries as a non-signaled auto-reset event.
Since ResetEvent() is never called, the call to WaitForMultipleObjects() can always return immediately once the event has been signaled.
This commit is contained in:
parent
744208f701
commit
fae178f70b
1 changed files with 1 additions and 1 deletions
|
@ -175,7 +175,7 @@ RemotePathChecker::RemotePathChecker()
|
|||
: _stop(false)
|
||||
, _watchedDirectories(make_shared<const vector<wstring>>())
|
||||
, _connected(false)
|
||||
, _newQueries(CreateEvent(NULL, true, true, NULL))
|
||||
, _newQueries(CreateEvent(NULL, FALSE, FALSE, NULL))
|
||||
, _thread([this]{ this->workerThreadLoop(); })
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue