From f974a8287ac6b477e8940e86f333d9b3e2458933 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 2 May 2022 13:07:03 +0100 Subject: Rethrow flush failures in release --- netfs/fuse/fuseFiles.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/netfs/fuse/fuseFiles.cpp b/netfs/fuse/fuseFiles.cpp index 8781772..7bd86ca 100644 --- a/netfs/fuse/fuseFiles.cpp +++ b/netfs/fuse/fuseFiles.cpp @@ -85,11 +85,14 @@ namespace NetFS { auto remote = of->remote; try { of->flush(); + clearProxy(fi->fh); + remote->close(); } catch (SystemError & e) { + clearProxy(fi->fh); + remote->close(); + throw; } - remote->close(); - clearProxy(fi->fh); return 0; } catch (SystemError & e) { -- cgit v1.2.3