server: do not nil sandbox's infraContainer on remove

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
Antonio Murdaca 2017-04-20 12:56:15 +02:00
parent eb257d2526
commit f18e032714
No known key found for this signature in database
GPG key ID: B2BEAD150DE936B9

View file

@ -83,7 +83,6 @@ func (s *Server) RemovePodSandbox(ctx context.Context, req *pb.RemovePodSandboxR
}
s.removeContainer(podInfraContainer)
sb.infraContainer = nil
// Remove the files related to the sandbox
if err := s.storageRuntimeServer.StopContainer(sb.id); err != nil {