v2api: fix crash on umount

fs.Mount already called srv.Serve() for us.
This commit is contained in:
Jakob Unterwurzacher 2020-07-08 22:21:27 +02:00
parent 40a31e0c32
commit a39fc8ab2e
1 changed files with 2 additions and 2 deletions

View File

@ -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: