summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--netfs/fuse/fuse.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/netfs/fuse/fuse.cpp b/netfs/fuse/fuse.cpp
index e31ee03..43a10c4 100644
--- a/netfs/fuse/fuse.cpp
+++ b/netfs/fuse/fuse.cpp
@@ -26,7 +26,9 @@ NetFS::FuseApp::~FuseApp()
for (const OpenFiles::value_type & of : openFiles) {
of.second->remote->close();
}
- volume->disconnect();
+ if (volume) {
+ volume->disconnect();
+ }
if (ic) {
ic->destroy();
}