summaryrefslogtreecommitdiff
path: root/libpod/container_internal.go
diff options
context:
space:
mode:
authorTomSweeneyRedHat <tsweeney@redhat.com>2018-04-14 17:32:49 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2018-04-16 15:18:38 +0000
commit6c5ebb0315fc6527c0d75ca53fb6b027d20802a5 (patch)
treeb82c25f9efa375b87152fe4c8cc12b8d0b954f6c /libpod/container_internal.go
parentfa8442e4a063b9a074cd2d17effdf5de138f90cb (diff)
downloadpodman-6c5ebb0315fc6527c0d75ca53fb6b027d20802a5.tar.gz
podman-6c5ebb0315fc6527c0d75ca53fb6b027d20802a5.tar.bz2
podman-6c5ebb0315fc6527c0d75ca53fb6b027d20802a5.zip
Change container.locked to batched
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com> Closes: #619 Approved by: mheon
Diffstat (limited to 'libpod/container_internal.go')
-rw-r--r--libpod/container_internal.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/container_internal.go b/libpod/container_internal.go
index c9454db8a..e0411e028 100644
--- a/libpod/container_internal.go
+++ b/libpod/container_internal.go
@@ -334,7 +334,7 @@ func (c *Container) getArtifactPath(name string) string {
// Used with Wait() to determine if a container has exited
func (c *Container) isStopped() (bool, error) {
- if !c.locked {
+ if !c.batched {
c.lock.Lock()
defer c.lock.Unlock()
}