From 5557fd10a225ebdf0f8ee5621190f62821c2fd9b Mon Sep 17 00:00:00 2001 From: Mrunal Patel Date: Mon, 19 Sep 2016 10:04:14 -0700 Subject: [PATCH] Remove unnecessary unlock Signed-off-by: Mrunal Patel --- server/runtime.go | 1 - 1 file changed, 1 deletion(-) diff --git a/server/runtime.go b/server/runtime.go index 39595534..6b59d36f 100644 --- a/server/runtime.go +++ b/server/runtime.go @@ -243,7 +243,6 @@ func (s *Server) RemovePodSandbox(ctx context.Context, req *pb.RemovePodSandboxR return nil, fmt.Errorf("failed to delete container %s in sandbox %s: %v", c.Name(), *sbName, err) } if podInfraContainer == c.Name() { - sb.containersLock.Unlock() continue } containerDir := filepath.Join(s.runtime.ContainerDir(), c.Name())