summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
Diffstat (limited to 'libpod')
-rw-r--r--libpod/util.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/libpod/util.go b/libpod/util.go
index 5154a261e..e89c6faaa 100644
--- a/libpod/util.go
+++ b/libpod/util.go
@@ -56,6 +56,7 @@ func WaitForFile(path string, chWait chan error, timeout time.Duration) (bool, e
inotifyEvents = watcher.Events
}
defer watcher.Close()
+ defer watcher.Remove(filepath.Dir(path))
}
var timeoutChan <-chan time.Time