From: Frederik Juul Christiani Date: Tue, 13 Jun 2017 08:28:12 +0000 (+0200) Subject: Initialize stop variable. X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~710^2~3^2~10 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e7d4d12e165ea8c5de59acc10d4f2f9403ae4dc2;p=nextcloud-desktop.git Initialize stop variable. Avoid stopping the worker thread immediately if the stop variable happens to be true. --- diff --git a/shell_integration/windows/OCUtil/RemotePathChecker.cpp b/shell_integration/windows/OCUtil/RemotePathChecker.cpp index cf8b72bbd..16449ddc0 100644 --- a/shell_integration/windows/OCUtil/RemotePathChecker.cpp +++ b/shell_integration/windows/OCUtil/RemotePathChecker.cpp @@ -172,7 +172,8 @@ void RemotePathChecker::workerThreadLoop() RemotePathChecker::RemotePathChecker() - : _watchedDirectories(make_shared>()) + : _stop(false) + , _watchedDirectories(make_shared>()) , _connected(false) , _newQueries(CreateEvent(NULL, true, true, NULL)) , _thread([this]{ this->workerThreadLoop(); })