2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-26 06:46:34 +00:00

Merge pull request #495 from restic/fix-494

Umount fuse in tests
This commit is contained in:
Alexander Neumann 2016-04-13 20:48:50 +02:00
commit 75dd9e0fee

View File

@ -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()
}
}