diff --git a/src/cmds/restic/cmd_mount.go b/src/cmds/restic/cmd_mount.go index 5baf1419a..d800bd33c 100644 --- a/src/cmds/restic/cmd_mount.go +++ b/src/cmds/restic/cmd_mount.go @@ -98,10 +98,10 @@ func (cmd CmdMount) Execute(args []string) error { case err := <-errServe: return err case <-cmd.done: - err := c.Close() + err := systemFuse.Unmount(mountpoint) if err != nil { - cmd.global.Printf("Error closing fuse connection: %s\n", err) + cmd.global.Printf("Error umounting: %s\n", err) } - return systemFuse.Unmount(mountpoint) + return c.Close() } }