summaryrefslogtreecommitdiff
path: root/libpod/pod.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2018-06-21 11:09:17 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2018-06-22 19:26:46 +0000
commitc3602075ec6ee535e2fbf3e4fcf2ecbd27fa22c9 (patch)
tree80330aed0ce1e21103307be4dd6d1d7afeb49c14 /libpod/pod.go
parentd2f981fd0babda31c89ac031dabc671d76b8f25a (diff)
downloadpodman-c3602075ec6ee535e2fbf3e4fcf2ecbd27fa22c9.tar.gz
podman-c3602075ec6ee535e2fbf3e4fcf2ecbd27fa22c9.tar.bz2
podman-c3602075ec6ee535e2fbf3e4fcf2ecbd27fa22c9.zip
Make CGroups cleanup optional on whether they exist
Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #981 Approved by: baude
Diffstat (limited to 'libpod/pod.go')
-rw-r--r--libpod/pod.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/libpod/pod.go b/libpod/pod.go
index 1fde4285d..a96628853 100644
--- a/libpod/pod.go
+++ b/libpod/pod.go
@@ -127,9 +127,6 @@ func (p *Pod) save() error {
// Refresh a pod's state after restart
func (p *Pod) refresh() error {
- p.lock.Lock()
- defer p.lock.Unlock()
-
if !p.valid {
return ErrPodRemoved
}