Commit b1f87d34 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Zero out mountFile and mountPoint after the event loop exits.

parent e8f397ba
......@@ -111,11 +111,6 @@ func (me *MountState) Unmount() (err error) {
delay = 2*delay + 5*time.Millisecond
time.Sleep(delay)
}
if err == nil {
me.mountPoint = ""
me.mountFile.Close()
me.mountFile = nil
}
return err
}
......@@ -178,6 +173,8 @@ func (me *MountState) recordStats(req *request) {
func (me *MountState) Loop() {
me.loop()
me.mountFile.Close()
me.mountFile = nil
me.mountPoint = ""
}
func (me *MountState) loop() {
......
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