mirror of
https://github.com/restic/restic.git
synced 2024-12-25 01:06:39 +00:00
Umount fuse in tests
This corrects the order when the fuse mount is terminated by closing the done channel: Before, restic would close the fuse connection and only afterwards try to remove the mount, that does not work. Closes #494
This commit is contained in:
parent
32a5778602
commit
23d7464306
1 changed files with 3 additions and 3 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue