summaryrefslogtreecommitdiff
path: root/mount.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2020-07-08 22:21:27 +0200
committerJakob Unterwurzacher2020-07-08 22:21:27 +0200
commita39fc8ab2e559113f23d64ff87d59842317bbb8c (patch)
tree17b9f0d3041d6905662f95bd57711dce217ca293 /mount.go
parent40a31e0c325396d3c515032ad5f87299f297e204 (diff)
v2api: fix crash on umount
fs.Mount already called srv.Serve() for us.
Diffstat (limited to 'mount.go')
-rw-r--r--mount.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/mount.go b/mount.go
index 5aa0168..4b4192e 100644
--- a/mount.go
+++ b/mount.go
@@ -165,8 +165,8 @@ func doMount(args *argContainer) {
fwdFs := fs.(*fusefrontend.RootNode)
go idleMonitor(args.idle, fwdFs, srv, args.mountpoint)
}
- // Jump into server loop. Returns when it gets an umount request from the kernel.
- srv.Serve()
+ // Wait for unmount.
+ srv.Wait()
}
// Based on the EncFS idle monitor: