From e7d4d12e165ea8c5de59acc10d4f2f9403ae4dc2 Mon Sep 17 00:00:00 2001 From: Frederik Juul Christiani Date: Tue, 13 Jun 2017 10:28:12 +0200 Subject: [PATCH] Initialize stop variable. Avoid stopping the worker thread immediately if the stop variable happens to be true. --- shell_integration/windows/OCUtil/RemotePathChecker.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); })