summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-02-14 17:33:24 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2015-02-14 17:33:24 +0000
commit83203932c431efe775c2bae05da20cd83f96988e (patch)
tree8070bb1b1c6ee754d531cb6e35097f4c9a08ec7e
parentAllow specifying the identity of the service object (diff)
downloadnetfs-83203932c431efe775c2bae05da20cd83f96988e.tar.bz2
netfs-83203932c431efe775c2bae05da20cd83f96988e.tar.xz
netfs-83203932c431efe775c2bae05da20cd83f96988e.zip
Don't assume a volume session was started when terminating
-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();
}