aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pkg/driver/mounter.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/driver/mounter.go b/pkg/driver/mounter.go
index 8a48967..909e6ec 100644
--- a/pkg/driver/mounter.go
+++ b/pkg/driver/mounter.go
@@ -77,6 +77,10 @@ func fuseMount(path string, command string, args []string) (Unmounter, error) {
glog.Infof("weed mount exit, pid: %d, path: %v", cmd.Process.Pid, path)
}
+ // make sure we'll have no stale mounts
+ time.Sleep(time.Millisecond * 100)
+ _ = mount.New("").Unmount(path)
+
close(fu.finished)
}()