summaryrefslogtreecommitdiff
path: root/netfs/fuse/fuseFiles.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'netfs/fuse/fuseFiles.cpp')
-rw-r--r--netfs/fuse/fuseFiles.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/netfs/fuse/fuseFiles.cpp b/netfs/fuse/fuseFiles.cpp
index d2aae51..55fdcf5 100644
--- a/netfs/fuse/fuseFiles.cpp
+++ b/netfs/fuse/fuseFiles.cpp
@@ -29,7 +29,7 @@ namespace NetFS {
return bg;
}();
for (const auto & w : cbg) {
- w.second->future.wait();
+ w.second->future.get();
}
}
@@ -41,8 +41,7 @@ namespace NetFS {
return bg.empty() ? nullptr : bg.begin()->second;
};
while (auto w = first()) {
- // background operations are void, so no need to actually get the return value
- w->future.wait();
+ w->future.get();
}
}