summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-05-02 13:03:58 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2022-05-02 13:03:58 +0100
commit4cbd9942c316d61953a72a4e4f6576bd8de799ac (patch)
tree159005f7ce59ad0f5b5c4e6cae82a87deb4660a7
parentAlways call get on future, as wait doesn't throw the stored exception (diff)
downloadnetfs-4cbd9942c316d61953a72a4e4f6576bd8de799ac.tar.bz2
netfs-4cbd9942c316d61953a72a4e4f6576bd8de799ac.tar.xz
netfs-4cbd9942c316d61953a72a4e4f6576bd8de799ac.zip
Don't remove failed BG op, we need to throw it later
-rw-r--r--netfs/fuse/fuseFiles.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/netfs/fuse/fuseFiles.cpp b/netfs/fuse/fuseFiles.cpp
index 55fdcf5..8781772 100644
--- a/netfs/fuse/fuseFiles.cpp
+++ b/netfs/fuse/fuseFiles.cpp
@@ -194,9 +194,6 @@ namespace NetFS {
},
[p, of, key](auto e) {
p->promise.set_exception(e);
- ScopeLock(of->mutex) {
- of->bg.erase(key);
- }
});
});
}