summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-05-27 09:26:39 -0400
committerGitHub <noreply@github.com>2020-05-27 09:26:39 -0400
commit9cb5c87284377507aafae8456ee8f00823954712 (patch)
treee29f0111c611f87870213129f29cd4ab3c30f73a /pkg
parent119e13d4bcc3e8da903da33b291f2795b0e76e71 (diff)
parent3cef598fc2b2d75ceb02ea8546327b03bc927b55 (diff)
downloadpodman-9cb5c87284377507aafae8456ee8f00823954712.tar.gz
podman-9cb5c87284377507aafae8456ee8f00823954712.tar.bz2
podman-9cb5c87284377507aafae8456ee8f00823954712.zip
Merge pull request #6406 from vrothberg/stats-race
container stats: fix --no-stream race
Diffstat (limited to 'pkg')
-rw-r--r--pkg/domain/infra/abi/containers.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/domain/infra/abi/containers.go b/pkg/domain/infra/abi/containers.go
index b4e38ca23..e982c7c11 100644
--- a/pkg/domain/infra/abi/containers.go
+++ b/pkg/domain/infra/abi/containers.go
@@ -1087,6 +1087,7 @@ func (ic *ContainerEngine) Shutdown(_ context.Context) {
}
func (ic *ContainerEngine) ContainerStats(ctx context.Context, namesOrIds []string, options entities.ContainerStatsOptions) error {
+ defer close(options.StatChan)
containerFunc := ic.Libpod.GetRunningContainers
switch {
case len(namesOrIds) > 0: