diff --git a/src/win32/Watcher.cpp b/src/win32/Watcher.cpp index e7190dbe..8a504ea9 100644 --- a/src/win32/Watcher.cpp +++ b/src/win32/Watcher.cpp @@ -236,8 +236,8 @@ void Watcher::start() { QueueUserAPC([](__in ULONG_PTR self) { auto watcher = reinterpret_cast(self); - watcher->mHasStartedSemaphore.signal(); watcher->pollDirectoryChanges(); + watcher->mHasStartedSemaphore.signal(); } , mRunner.native_handle(), (ULONG_PTR)this); if (!mHasStartedSemaphore.waitFor(std::chrono::seconds(10))) {