Commit 8e03191c authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Close communication channel after unmounting FUSE.

parent 810da5aa
...@@ -88,11 +88,13 @@ func (me *MountState) SetRecordStatistics(record bool) { ...@@ -88,11 +88,13 @@ func (me *MountState) SetRecordStatistics(record bool) {
func (me *MountState) Unmount() os.Error { func (me *MountState) Unmount() os.Error {
// Todo: flush/release all files/dirs? // Todo: flush/release all files/dirs?
result := unmount(me.mountPoint) err := unmount(me.mountPoint)
if result == nil { if err == nil {
me.mountPoint = "" me.mountPoint = ""
me.mountFile.Close()
me.mountFile = nil
} }
return result return err
} }
func NewMountState(fs RawFileSystem) *MountState { func NewMountState(fs RawFileSystem) *MountState {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment