fix unmount
This commit is contained in:
parent
924d77edec
commit
a729080945
5
wrap.go
5
wrap.go
@ -172,11 +172,14 @@ func (g *gfw) Mount() error {
|
||||
}
|
||||
|
||||
func (g *gfw) Unmount() error {
|
||||
fmt.Println("Canceling...")
|
||||
g.cancel()
|
||||
g.conn.Close()
|
||||
fmt.Println("Unmounting...")
|
||||
if err := fuse.Unmount(g.mountpoint); err != nil {
|
||||
return err
|
||||
}
|
||||
fmt.Println("Closing...")
|
||||
g.conn.Close()
|
||||
return os.Remove(g.mountpoint)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user