v2api: fix crash on umount
fs.Mount already called srv.Serve() for us.
This commit is contained in:
parent
40a31e0c32
commit
a39fc8ab2e
4
mount.go
4
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:
|
||||
|
|
Loading…
Reference in New Issue