diff --git a/internal/oci/runtime_oci.go b/internal/oci/runtime_oci.go index a85428cdedf..afe04f98cd8 100644 --- a/internal/oci/runtime_oci.go +++ b/internal/oci/runtime_oci.go @@ -1143,7 +1143,6 @@ func WatchForFile(path string, done chan struct{}, opsToWatch ...fsnotify.Op) (c } }() if err := watcher.Add(dir); err != nil { - close(done) return nil, err } return ch, nil