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

Don't try to unmount if we are already unmounted.

parent 7c7b66b4
......@@ -95,6 +95,9 @@ func (me *MountState) SetRecordStatistics(record bool) {
}
func (me *MountState) Unmount() (err error) {
if me.mountPoint == "" {
return nil
}
delay := int64(0)
for try := 0; try < 3; try++ {
err = unmount(me.mountPoint)
......
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