summaryrefslogtreecommitdiff
path: root/FreeFileSync/Source/RealTimeSync/monitor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'FreeFileSync/Source/RealTimeSync/monitor.cpp')
-rw-r--r--FreeFileSync/Source/RealTimeSync/monitor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/FreeFileSync/Source/RealTimeSync/monitor.cpp b/FreeFileSync/Source/RealTimeSync/monitor.cpp
index b8d7650e..7bd4b662 100644
--- a/FreeFileSync/Source/RealTimeSync/monitor.cpp
+++ b/FreeFileSync/Source/RealTimeSync/monitor.cpp
@@ -56,7 +56,7 @@ std::set<Zstring, LessNativePath> waitForMissingDirs(const std::vector<Zstring>&
{
std::future<bool>& folderAvailable = folderInfo.folderAvailable;
- while (folderAvailable.wait_for(cbInterval) != std::future_status::ready)
+ while (folderAvailable.wait_for(cbInterval) == std::future_status::timeout)
requestUiUpdate(folderPath); //throw X
if (folderAvailable.get())
@@ -88,7 +88,7 @@ std::set<Zstring, LessNativePath> waitForMissingDirs(const std::vector<Zstring>&
return dirAvailable(folderPath);
});
- while (folderAvailable.wait_for(cbInterval) != std::future_status::ready)
+ while (folderAvailable.wait_for(cbInterval) == std::future_status::timeout)
requestUiUpdate(folderPath); //throw X
if (folderAvailable.get())
bgstack15